I want to compare 2 fields in a Form

  • TASPLBDM
    Asked on May 8, 2014 at 2: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

  • TASPLBDM
    Replied on May 8, 2014 at 3: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.

  • cettox
    Replied on May 8, 2014 at 3:43 AM

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

  • TASPLBDM
    Replied on May 8, 2014 at 3: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.

  • cettox
    Replied on May 8, 2014 at 3: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!

  • TASPLBDM
    Replied on May 8, 2014 at 3:50 AM

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

  • cettox
    Replied on May 8, 2014 at 4: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