Default Values
Learn how to set default values for form fields in GenZform to pre-fill information for users.
Default values pre-fill form fields with initial content. This saves users time and can guide them toward expected responses.
When to Use Default Values
Default values are useful for:
- Common answers (e.g., most popular country)
- Suggested values (e.g., recommended quantity)
- Today's date for date fields
- Pre-calculated starting points
- Placeholder content users can modify
Default values are different from placeholder text. Defaults are actual values that get submitted if unchanged. Placeholders are hints that disappear when typing.
How to Set Default Values
Ask the AI in the chat panel:
Example prompts:
- "Set the default country to United States"
- "Default the quantity to 1"
- "Pre-fill the date with today's date"
- "Set the default rating to 3 stars"
Default Value Types
Text Fields
"Set the default value for company name to 'Your Company'"Numbers
"Default the quantity field to 1"Dates
"Set the default date to today"
"Default the start date to next Monday"Dropdowns
"Pre-select 'United States' in the country dropdown"Checkboxes
"Pre-check the 'Subscribe to newsletter' checkbox"Radio Buttons
"Pre-select 'Standard shipping' by default"Dynamic Defaults
Based on Date
"Default the event date to 7 days from now"Based on Selection
"Default the quantity to 5 when the user selects 'Team Plan'"Based on Calculated Values
"Set the total price default to quantity times unit price"Frequently Asked Questions
What's the difference between default values and placeholders?
Default values are actual content that gets submitted if unchanged. Placeholders are hint text that disappears when users start typing and don't get submitted.
Can defaults be dynamic?
Yes! You can set defaults based on the current date, selections, or calculated values.
Will users see that a field has a default?
Yes, the field will show the default value. Users can change it or leave it as-is.