> ## Documentation Index
> Fetch the complete documentation index at: https://docs.confidolegal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Change the Form Type

As your UI switches between payment form types (`card`, `ach`), you must call this method to load the required fields.

Calling `setActiveForm()` changes the fields that are loaded. You must ensure that the elements where the fields will be loaded are in the DOM before calling this method.

```javascript theme={"system"}
window.confidoHostedFields.setActiveForm(type: FormType): void;
```
