Designer API
Control the Webflow Designer
formInput.setInputType()
Sets the HTML type of a FormTextInput field.
Supported element:
FormTextInput
1formInput.setInputType(type: 'text' | 'email' | 'password' | 'tel' | 'number' | 'url'): Promise<null>;
A Promise that resolves to null
null
1// Get the currently selected element2let formTextInput = await webflow.getSelectedElement();34// Set the input type5await formTextInput.setInputType("email");