How to set default values for form fields?
You can set up input default values for form fields in your Form Editor. Prefilled values help users fill out the form faster and make the overall experience friendlier.
To set a default field value, simply click on the field to open its Edit Field panel. In the Default Value box, provide the predefined field value that the form user will see, as shown in the image below.
You can use input default values not only to provide input suggestions and examples, but also to prefill the fields that users are probably not going to change. For instance, if you are building a registration form that primarily addresses participants from Boston, you can prefill the City field with the value Boston. Participants from other cities will still have the possibility to change the value of that field.
There are no particular specifications for the usage of this feature in what Text Boxes (with either of their validation types) and Text Areas are concerned. However, you cannot add more than 253 characters for the Text Area field, which is its input limit.
However, for other fields, you should be aware of certain particularities that are listed below and are also mentioned as instructions in your Form Editor, for those specific fields.
- Name. The default value that you specify for a Name field must contain a space character. In other words, you should provide a first and a last name, as Name fields consist of two separate input boxes.
- Date. Default values for Date fields must have the format 09/23/2013 or 23/09/2013. For Date fields, you can also use the default values YESTERDAY, TODAY, TOMORROW, that prefill the field based on the date at which users access your form.
- Time. Default values for Time fields must correspond to the 12-hour clock format to work (e.g. 11:45 PM or 11:45 AM). You can also add the value NOW which will display the current time when the form is displayed in the timezone of the owner’s 123ContactForm account.
- Star Rating. To set a default value to the Star Rating field, click on the field in the editor and choose Advanced in the panel on the left. Next, click on the dropdown Default Value and select the number of stars that will be selected when the form is accessed. The option Not Selected means that the default value is deactivated to the field.