|
/ Documentation /Creating Forms/ Validate as Unique in SureForms

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.”
Enable Validate as Unique.

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.

Need help? Contact Support
On this page
Scroll to Top