How do I select multiple options of field based on selection of two different fields?

  • Profile Image
    simplehome
    Asked on March 12, 2018 at 07:52 PM

    Hello,


    At this form- https://www.jotform.com/build/80684477484168#preview I am trying to create a rule that says if # of units is 4 or above, then it clicks "salt" on the "maintenance needs" question.  However, I'm also trying to copy the "utilities included" answers to the "maintenance needs" question.  If I click on 4 units, then salt is clicked, but then if I choose an option from "utilities included" it overwrites the salt option.

  • Profile Image
    John_Benson
    Answered on March 12, 2018 at 09:56 PM

    Is the issue resolved? I tried it and I was not able to replicate the issue. It did not overwrite the Salt option from the Maintenance Needs field after choosing a random option from the Utilities Included field.

    Here's a screen capture of my test:

    1520906086Condits_001.gif

    If you're referring to a different field or issue, please contact us again and provide more details. To post a screenshot here in JotForm, please follow this guide: https://www.jotform.com/help/438-How-to-Post-Screenshots-to-Our-Support-Forum

    Thank you.

  • Profile Image
    simplehome
    Answered on March 12, 2018 at 10:12 PM

    That is because "water" is not an option for maintenance needs.  If you have it set for "4 units" and click "snow sidewalks", salt disappears.

  • Profile Image
    Kiran
    Answered on March 13, 2018 at 03:47 AM

    I have checked your JotForm and see what you mean. Since the result field is the same for different conditions, it is overriding the value. Please allow me some time to check this up for you and get back to you with relevant information.

    Thank you for your patience.

  • Profile Image
    Kiran
    Answered on March 13, 2018 at 05:19 PM

    Thank you for your patience. As I check the conditions, it didn't work with separate fields since the conditions are overriding to select the options for maintenance needs field. However, as a workaround, we can add the 'Salt' option to 'Utilities Included' field.

    1520975453Selection_075.png

    This Salt option can be hidden by adding the following CSS code to the form.

    #cid_11 span:nth-child(10) {

        display: none;

    }

    I have added a new condition to the form to select the Salt option in 'Utilities Included' field when the number of units is more than 4.

    1520975598Selection_076.png


    Since the Utilities included options are already being passed to Maintenance Needs field, I haven't changed anything on this.

    Please see the screencast of the form with the above changes:

    1520975847Peek 2018-03-14 02-46.gif

    Here is the cloned version of your form with the above changes:

    https://form.jotform.com/80716594548973

    Please get back to us if you need any further assistance. We will be happy to help.



  • Profile Image
    simplehome
    Answered on March 13, 2018 at 05:44 PM

    Thank you for your help!