How to set input 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.
In the live version of the form, fields with default values will look similar to those 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.
However, for other fields, you should be aware of certain particularities:
- 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 last name, as Name fields consist of two separate input boxes.
- Date. For Date fields, you can use the default values today -1 week, yesterday, today, tomorrow, today +1 week, custom date. These will prefill the field based on the date at which users access your form. Custom date must have the format selected for the field.
- Time. Default values for Time fields can be displayed on a 12-hour format or on a 24-hour format. The default time options are now – 1 hour, now – 1 minute, now, now + 1 minute, now + 1 hour, custom time. When adding a custom time, make sure to respect the time format selected for the field.
- Star Rating. You can add the number of stars that will be selected when the form is accessed. Type in the desired number of stars in the Default value section, under Options.