How to conditionally generate configurable list widgets?

  • EQUIPR
    Asked on September 17, 2024 at 12:01 AM

    Hi Support

    I am currently working on our Height Safety Recertification Report form and require some assistance with conditions etc.

    Firstly, if the form user selects 'other' from the drop down list, I need the 'other' field to be showing however it is currently not showing.

    The other function I require is, if the form user answers 'yes' to the question of 'were there any other components tested' then a new configurable list needs to appear and this sequence needs to be set up to continue as conditions every time the answer is 'yes' to the questions of 'were there any other components tested'

    Looking forward to hearing from you.

    Shai

  • EQUIPR
    Replied on September 17, 2024 at 12:12 AM

    I also need to know if it is possible to select multiple options from the dropdown options

  • Raymond JotForm Support
    Replied on September 17, 2024 at 3:00 AM

    Hi Shai,

    Thanks for reaching out to Jotform Support. To fix your condition regarding the Configurable List widget and the Other field, please Update the condition from "Equal to" to "Contains".

    How to conditionally generate configurable list widgets? Image 1 Screenshot 40

    Unfortunately, it's not possible to automatically generate new fields (like the configurable list widget) through conditions. You'll have to create the fields in the form, and associated conditions with them so they show conditionally. Let me show you how to do that:

    1. In Form Builder, right-click on the Configurable List widget and select Duplicate.
    2. Next, move it under the "Were Additional Components Tested?" field.
      How to conditionally generate configurable list widgets? Image 2 Screenshot 51
    3. Next, click on Settings and Conditions.
    4. Then, create a new Show/Hide field condition that shows the Configurable List widget if the Answer to "Were Additional Components Tested?" field is Yes.
      How to conditionally generate configurable list widgets? Image 3 Screenshot 62
    5. Repeat the same as many as you wish and that's it.

    As for your question about the dropdown field being able to receive more than one options, it can be done for the basic dropdown field as you did on the "Technician(s): " field, but sub fields within the Configurable List widget does not support that. Instead, consider using the checkbox subfield instead.

    Reach out again if you have any questions.

  • EQUIPR
    Replied on September 18, 2024 at 12:25 AM

    Hi Raymond


    Thank you for your reply, that was very helpful.


    I'm hoping you can assist me further with some conditions.


    What I am wanting to do is have a condition whereby if the Configurable List 'does not contain' 0 then I would like the 'upload images of failed items' field to appear.


    I also need the 'Other (reason for failed items) to show, only if 'other' is contained in the configurable list.


    Are you able to please provide some assistance on how I can make this happen?


    Thanks

    Shai

  • Myla JotForm Support
    Replied on September 18, 2024 at 3:13 AM

    Hello Shai,

    I’ll need a bit of time to look into this. I’ll get back to you as soon as I can.

    Thanks for your patience. 

  • Myla JotForm Support
    Replied on September 18, 2024 at 4:21 AM

    Hello Shai,

    I have cloned and tested your form and the condition for 'Does not Contain 0', also means that if the Configurable List is empty, it will technically, by default, show the 'upload images of failed items' field appear even if it is set to hidden. I suggest you use other condition to apply, such as other values instead of 'Does not contain' to 'contain 0'. I can see that on your second Configurable Widget, you have set a condition wherein if Configurable List 'contains 0' it hides the field. If you are trying to hide this field if it 'does contain 0', then we suggest, you just keep the field hidden and set a Show Condition to show it when it does have other values. It will be easier to set a show condition on certain values, rather than looking for values that aren't there yet in the first place.

    Otherwise, if I am understanding the logic incorrectly, please help provide more details on how the data would exactly affect the conditions so we can help find other values that can be used.

    As soon as we hear back from you, we can move forward with a solution.

Your Answer