Unique email validation for forms

by prasanth on September 26, 2011

Some forms require that the email submitted in the form to be unique. If the user has already submitted the form, the form should not be submitted again (with the same email, at least)

Here is an extension module that checks the database to see that the email was not submitted before.

Please note that ‘Save to database table’ should be enabled in the ‘form processing options page. ( The email submission is checked against the database table entries )

Steps:

  • Download the extension module
  • Open the file UniqueEmail.php in a text editor.
    scroll down to the line /*database details*/ and update the
    database details. Save the file.
  • In Simfatic Forms, ‘Enable extension modules’ in the ‘form processing options’ page and press ‘Next’
  • In the extension modules page, press ‘add module’ and select UniqueEmail.php
  • re-upload the form

{ 1 comment… read it below or add one }

Azi December 12, 2011 at 5:35 pm

Hi,
Instead of email, if we required the field of our own choice like name or phone number then what to change in this extension nmobule?

Thanx

Reply

Leave a Comment

Previous post:

Next post: