A Hidden field is not visible in a form. It is used for storing a value that can not be seen in the front-end form. It is commonly used to store a calculation, a dynamic default value, or a static default value.
Field options
A Hidden Field has the following options:
Field-specific options
Currency Format
Show the number in the field as currency. It will follow the currency format set in Formidable → Global Settings by default. This format includes two decimal places and a currency symbol. Additionally, you can customize the thousand separator, decimal separator, and number of decimal places and choose your preferred currency symbol.
When you type in a field, the currency formatting will be applied immediately. For example, if a user types This item will cost 5000 it will appear as This item will cost $5,000.00.
Number Format
The number format automatically applies formatting when you enter numbers. It has options for the thousand separator, decimal separator, decimal places, and symbols on the left and right. When you type in a field, the number formatting will be applied immediately. For example, if a user types There are 1500000 attendees in the event it will appear as There are 1,500,000 attendees in the event
Default values and field icons
Set a dynamic default value in your Hidden Field. If you would like to retrieve a value from an entry see the Get a Value From an Entry page. If you would like to set a default value, see the Default Values page.
Field action icons allows you to duplicate, delete, and/or move a field on the form builder page. See field action icons for more information.
Display Hidden fields
Even though the field is hidden in the form, you can still display a Hidden field's submitted value in a form's confirmation message, email, or View. Just insert [x], where x is the ID or key of the Hidden Field.
Related developer hooks
- Make sure that only an admin user can change the value of a hidden field with the frm_validate_field_entry hook.