Can you compare the values entered in two fields?

  • ESFA
    Asked on April 25, 2019 at 9:35 PM

    I am updating a form where a Club is requesting a change to a scheduled match against another Club.

    https://form.jotform.co/91148550638865

    Is there a way that I can compare the name of the Club selected in one dropdown list to the name of the Club in a second dropdown list?

    I want to be able to automatically approve a request if both names match.

    Thanks.

  • Richie JotForm Support
    Replied on April 26, 2019 at 12:57 AM

    To clarify, are you trying to compare the name of the club from your submission data? Or are you trying to compare one dropdown field to another?

    If you're just comparing the fields values, you may use conditions to match them.

    I have checked your form but I'm not sure I understood the form flow correctly.

    Can you please explain further the form flow and what fields are matched?

    Looking forward for your response.


  • ESFA
    Replied on May 30, 2019 at 9:43 PM

    Hi,

    I am trying to compare one dropdown field to another dropdown field.  I cannot see a condition that allows me to do that easily.

  • Richie JotForm Support
    Replied on May 31, 2019 at 12:18 AM

    To clarify, would you like the condition to show a field when a certain dropdown field is selected? Or do you want just to compare both dropdowns?

    You may use the Form Calculation widget to get the values of the dropdown then use conditions to compare them.

    Can you compare the values entered in two fields? Image 1 Screenshot 30

    Guide:https://www.jotform.com/help/259-How-to-Perform-Form-Calculation-Using-a-Widget

    Example condition:The Drop1 and Drop2 fields are Form calculation widgets.

    Can you compare the values entered in two fields? Image 2 Screenshot 41

    Hope this information helps.

    If you need further assistance, let us know.



  • ESFA
    Replied on June 4, 2019 at 2:34 AM

    Hi,

    Ideally I want to be able to compare A with B.  If A=B I want to be able to show a text field to be filled by the user.

  • Victoria_K
    Replied on June 4, 2019 at 3:58 AM

    Hello,

    To compare values of 2 dropdowns, you would need to add hidden calculation widgets. Those widgets would capture selected option. Then, calculation fields can be compared conditionally.

    Here are screenshots for you: 

    Can you compare the values entered in two fields? Image 1 Screenshot 30

    Can you compare the values entered in two fields? Image 2 Screenshot 41

    Please try and let us know if you need more help on this.

  • ESFA
    Replied on June 4, 2019 at 8:45 PM

     Thanks Victoria.  That worked.