- Creating and Publishing a Form
- Instant Forms
- Conversational Form
- Create Multi Step Forms In WordPress
- Using Calculations in SureForms: A Step-by-Step Guide
- Calculation Formula Guide
- SureForms Login Block – Step-by-Step Guide
- SureForms Registration Block – Step-by-Step Guide
- SureForms – PDF Generation Feature
- GDPR Compliant Forms
- Create WordPress Forms With Conditional Logic
- How to Create Inline Forms in SureForms
- How to Add Smart Tags as Default Values in SureForms
- Adding Custom Posts to Your WordPress Site Using SureForms
- Validate as Unique in SureForms
- Unable to Upload SureForms ZIP: File Unzipped On Download
- Browser Support for SureForms
- Not Getting Update Notifications
- How To Rollback to Previous SureForms Versions
- Publishing Failed: Invalid JSON Response
- Troubleshooting Email Sending In SureForms
- SureForm Submissions Marked as Spam – How to Fix
- API Request Failed – Nonce Verification Error
- Fixing the “Destination folder already exists” Error When Installing SureForms
- How to Set Up SureForms with Caching Plugins
- srfm_enable_redirect_activation
- sureforms_plugin_action_links
- srfm_quick_sidebar_allowed_blocks
- srfm_integrated_plugins
- srfm_suretriggers_integration_data_filter
- srfm_form_submit_response
- srfm_enable_gutenberg_post_types
- srfm_languages_directory
- srfm_form_template
- srfm_disable_nps_survey
Validate as Unique in SureForms
SureForms gives you the option to validate field values as unique. This means you can prevent duplicate entries for certain fields, like username, email, or ID number.
This is especially useful when you don’t want users to submit the same value multiple times. For example, when creating a registration form, you may want each username to be unique.
Supported Fields
The Validate as Unique option is available for the following fields:
- Text Field
- Email Field
- Phone Number Field
- Address Field
- Register Block
How to Enable “Validate as Unique”
- Add a Text Field (e.g., Username) to your form.
- In the field settings, toggle Validate as Unique.
- You’ll see an option to set a validation message.
- By default, the message will say something like: “Value needs to be unique.”
- You can edit this message to match your form’s tone, for example: “This username is already taken, please choose another.”
Example: Username Field
Let’s say we add a Username field with “Validate as Unique” enabled.
- A user enters the name “SF101” and submits the form for the first time.
- The submission is successful.
- If another user tries to submit the same username “SF101”, the form will display an error message:
“This username is already taken, please choose another.”
- When a new value (e.g., “SF102”) is entered, the form submits successfully again.
Why Use “Validate as Unique”?
- Prevents duplicate entries in your database.
- Ensures important fields like username, email, or ID number remain unique.
- Improves user experience by showing clear error messages when duplicates are entered.
Was this doc helpful?
What went wrong?
We don't respond to the article feedback, we use it to improve our support content.
On this page