Comparing 2 email addresses in conditional logic

  • Hardyc
    Asked on January 23, 2016 at 5:19 AM

    Hi

     

    I have a form for leave. I ask the user to enter their name and email address.  I also ask them to enter their Manager's name and email address.

    I have conditional logic to check if the two email addresses are the same, and if they are to send an error message to the user saying "they cant do that".

     

    It looks like the conditional logic is not working.  Can you help.

  • Welvin Support Team Lead
    Replied on January 23, 2016 at 9:42 AM

    I would suggest adding a text field and put the warning message there. Then add a show/hide conditional logic in the form, you have to target the other field value. Example:

    Comparing 2 email addresses in conditional logic Image 1 Screenshot 20

    Here's a cloned version of your form showing the changes: https://form.jotform.com/60224046086954.

  • Huberson
    Replied on January 23, 2016 at 9:46 AM

    Hi,

    you can achieve this by creating a 'Autoresponder' notification and adjust the condition.

    You can follow these steps:

    1-2 Create new 'Autoreponder notification'.

    Comparing 2 email addresses in conditional logic Image 1 Screenshot 60Comparing 2 email addresses in conditional logic Image 2 Screenshot 71

    3-4 Set the recipient to the email field to be filled and set your reply email.

    Comparing 2 email addresses in conditional logic Image 3 Screenshot 82

    5- Write the message for the recipient email.

    Comparing 2 email addresses in conditional logic Image 4 Screenshot 93

    6- Adjust the condition so that when both emails are same the message, the message is sent to the person who filed the form.

    Comparing 2 email addresses in conditional logic Image 5 Screenshot 104

     

    Hope this solve the problem.

     

    Huberson

  • Hardyc
    Replied on January 23, 2016 at 3:15 PM

    fantastic Welvin - thanks so much

  • Jan
    Replied on January 24, 2016 at 4:53 AM

    Glad to hear that you like Welvin's solution. On behalf of Welvin, you're welcome. Let us know if you need any help. Thank you.