# Input Settings

Source: https://support.wix.com/en/article/input-settings (updated 2026-11-10)
Related: Wix developer documentation, https://dev.wix.com/docs/llms.txt; Help Center index, https://support.wix.com/en/llms.txt

Set the type and behavior of your text input to collect specific data formats and control user interaction with the field.

**What kind of data can visitors enter in the text input?**

Click the **Type** drop-down to set the text input to collect different types of information:

* **Text:** Any characters.
* **Password:** Hidden input (represented by dots or asterisks).
* **Number:** Numericdigits only.
* **Email:** Valid email addresses.
* **URL:** Valid web addresses.
* **Phone number:** Digits and some symbols.

**How do I set placeholder or default text in the input?**

1. Under **Show initial text**, choose how the field looks before it’s filled in:  
   * **None:** The field is empty.  
   * **Placeholder text:** A hint or example shown until visitors start typing.  
   * **Default:** A default value that appears in the field.  
   * **Default then placeholder:** Shows a default value, then switches to a hint if it’s erased.
2. (If needed) Enter the placeholder and/or default text.
3. (Optional) Enable the **Autocomplete** toggle to let the visitor's browser complete the field as they type.

**How do I require users to fill in the field before submitting?**

Select the **Required** checkbox so visitors must fill in the field before submitting the form.

**Can I limit the number of characters visitors can enter?**

Yes. Enable the **Set character limit** toggle, then enter the maximum number of characters in the **Maximum characters** field.

**How do I set a custom validation rule?**

Enable the **Add pattern validation** toggle, then enter a regular expression (regex) to control what visitors can enter. This lets you define your own validation beyond the default options.

**What does “Read only” mean?**

Select the **Read only** checkbox to prevent visitors from making changes to the field. Visitors can see and copy the text, but not change it. This is helpful for showing calculated or fixed values.

**How do I choose how error messages appear?**

Under **Error message format**, select either **Inline** or **Tooltip** to control how error messages display when there’s a problem with the input. Inline messages show below the field, while tooltips appear as pop-up hints.

**Do I need to add a 'Submit' button so visitors can submit their inputs?**

Yes. Any [input elements](https://support.wix.com/en/article/cms-about-user-input-elements) you add as part of a custom CMS form, need to have a 'Submit' button. When clicked, the values in each input save to your connected collection. 

  
**To add a 'Submit' button:** 

1. Add a regular button or image in your editor.
2. Connect the button to the same dataset that connects to the input elements visitors will submit.
3. Click the **Click action connects to** drop-down and select **Submit**.

![A screenshot of the Connect Button panel with Click action connects to set to Submit.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2025/04/29/d293b2a6-0903-475d-a183-f7b4f6066ac3/931fb590-d48c-4741-b793-db19401e7987.png) 

  
 Learn more about [creating a 'Submit' button for your custom CMS form](https://support.wix.com/en/article/cms-creating-a-custom-form-with-input-elements-that-submit-to-your-collection#step-4-create-a-submit-button).
