What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    I want to compare 2 fields in a Form

    Asked by TASPLBDM on May 08, 2014 at 02:26 AM

    I have created a form in which i want to compare 2 fields.

    1 of the field is "Unique ID".

    When the user fills in his email ID, the Unique ID which is primarily hidden will be sent to the user's email ID.

    Before submission, i ask him to feed that unique ID (OTP). If his input value matches the Unique ID, in that case the "Submission" button will get functional and Visible. Else he will not be able to submit the form.

     

    Please provide me a solution for the same. Please note that i do not know anything related to Java or anyother computer language so please guide me an easy way out to compare the "OTP" field and "Unique ID" field so that i can compare if they match or not.

     

    Regards and Thank You,

    Kumar DIbyesh

    Page URL:
    &lt;disabledtype=&quot;text/javascript&quot;src=&quot;http://form.jotf<br/>orm.me/jsform/41261478959467&quot;&gt;&lt;/script&gt;

    compare email unique id hidden unique
  • Profile Image

    Answered by TASPLBDM on May 08, 2014 at 03:43 AM

    yES.

    We have found that manytimes, the user gives wrong email IDs. For ex. my correct email ID is bdm@toshiautomatic.com but the even if i input bcm@toshiautomatic.com the validator considers it valid logically but this email ID does not exist. Our purpose of the form fails there.

    So general email validator is not solving the issue.

  • Profile Image

    Answered by cettox on May 08, 2014 at 03:43 AM

    So you want to confirm user's email adress before allow submission of form, am I right?

  • Profile Image

    Answered by TASPLBDM on May 08, 2014 at 03:47 AM

    And so to verify wether the user has given the correct and existing email ID, i need to send him the OTP which is the "Complaint Registration ID" (unique id) in my form. The user then checks his email ID, feeds the OTP in a field required in the same form. If the OTP he feeds matches the "Complaint Registration ID" then "Submit" button gets visible and functional.

    Please see that this entire OTP hoopla is being done to check if the user is giving us a correct and existing email id so that we can prevent receiving faulty and false complaint declarations.

  • Profile Image

    Answered by cettox on May 08, 2014 at 03:48 AM

    You can use our email validator widget. That widget does exactly what you want.

    To add email validator widget to your form, click Widgets tab on fields toolbar on the left,

    type "e-mail validator" on search bar, and drag&drop email validator widget to your form. You are done!

  • Profile Image

    Answered by TASPLBDM on May 08, 2014 at 03:50 AM

    Email Validator simply checks if the email fed has correct domain name or in correct format.

  • Profile Image

    Answered by cettox on May 08, 2014 at 04:45 AM

    Nope, email validator sends a randomly generated code to user's email adress, and asks user to supply that code he got from his email client. See widget home page here : http://widgets.jotform.com/widget/e-mail_validator