Can you compare the values entered in two fields?

  • Profile Image
    ESFA
    Asked on April 25, 2019 at 09: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.

  • Profile Image
    Richie_P
    Answered 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.


  • Profile Image
    ESFA
    Answered on May 30, 2019 at 09: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.

  • Profile Image
    Richie_P
    Answered 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.

    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.

    Hope this information helps.

    If you need further assistance, let us know.



  • Profile Image
    ESFA
    Answered on June 04, 2019 at 02: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.

  • Profile Image
    Victoria_K
    Answered on June 04, 2019 at 03: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: 

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

  • Profile Image
    ESFA
    Answered on June 04, 2019 at 08:45 PM

     Thanks Victoria.  That worked.