How to create multiple nested multiple choice field with some nested Short Texts

  • OCS_AlertaPlus
    Asked on April 17, 2024 at 3:29 AM
    I'm trying to replicate the same solution (update/calculate fields) to solve the last part of the form, the "Principal Owner" section (when you select 1 or more Principal Owner). Question, how can I configure the update/calculate fields condition logic to replicate the required behavior?

    Form to replicate: https://cfpb.github.io/sbl-sample-form/


    Regards,

  • Sonnyfer JotForm Support
    Replied on April 17, 2024 at 3:41 AM

    Hi Erick,

    Thanks for reaching out to JotForm Support. I did some tests, but I'm afraid what you're trying to do isn't possible with the previous workaround provided as it's more complex and even have another field (Short Text) that's also nested inside an already nested multiple choice.

    How to create multiple nested multiple choice field with some nested Short Texts Image 1 Screenshot 20

    We can still do this but it's going to be a tedious process as it we'll have to use 4 Multiple Choice Questions and 1 Short Text just for question number 1. Keep in mind, however, that you'll have 5 different columns in your submissions, so it can be hard to do determine if a certain checkbox is selected when viewed in your tables. I see my colleague has already escalated the idea as a Feature Request to our developers, we'll circle back to your original thread for any updates.

    Meantime, let us know if there's anything else we can help you with.

  • OCS_AlertaPlus
    Replied on April 17, 2024 at 8:14 AM

    I'm not satisfied with your response. I was able to replicate questions 1 and 2, but question #3 is posing challenges. I'm not assessing this deployment based on complexity; I can manage a complex configuration. What I need to know is how to accomplish it. It would be beneficial for product adoption if the development team could implement this basic feature quickly. In the meantime, could you escalate this request to someone who is proficient in conditional logic to provide a workaround? Thank you.

  • Harshad_P JotForm Support
    Replied on April 17, 2024 at 9:48 AM

    Hi Erick,

    Thanks for reaching out to Jotform Support. I am sorry you are having an issue with this, rest assured we will try our best to help you with a solution. I've cloned your form and tested it. I can see that you already have the #3 set up on the form.
    How to create multiple nested multiple choice field with some nested Short Texts Image 1 Screenshot 20
    Can you please let us know which part of the conditions you are having issues with so we can help you with a proper solution? Additionally, let us know your flow for the condition you want to achieve so we can test it accordingly.

    Once we hear back from you we can move forward with a solution.

  • Erick Valentin
    Replied on April 18, 2024 at 11:42 AM

    Thanks for your message Harshad,

    Attached here are the sample form that I'll need to replicate: https://cfpb.github.io/sbl-sample-form/

    I'll need to replicate the behavior (logic) for every questions or combination of questions here.

    So, for example, in the question #3 (Race) that will appear when you select at least 1 Principal Owner, should be able to select every check box and clear all selected check boxes when selected the last option "I do not wish to provide my race".

    I'll want to know the alternatives to replicate this behavior although the form itself didn't look the same as the original sample form.

    Any questions, please let me know,


    Regards,

  • Joshua_T JotForm Support
    Replied on April 18, 2024 at 12:20 PM

    Hi Erick,

    Thanks for getting back to us. Please allow us some time to look into this. I will circle back to this thread once I have an update.

    Thanks for your patience and understanding.

  • Joshua_T JotForm Support
    Replied on April 18, 2024 at 12:48 PM

    Hi Erick,

    Thanks for patiently waiting. After thorough testing, it appears that this can be achieved using multiple-choice elements and conditional logic. Let me show you how:

    1. In Form Builder, add multiple-choice elements for each option.How to create multiple nested multiple choice field with some nested Short Texts Image 1 Screenshot 80
    2. Then, create this Update/Calculate Conditional logic:How to create multiple nested multiple choice field with some nested Short Texts Image 2 Screenshot 91
    3. Finally, replicate the above conditional logic and change the Summary to each of the multiple choices.How to create multiple nested multiple choice field with some nested Short Texts Image 3 Screenshot 102

    Check out this screencast below for the result:

    How to create multiple nested multiple choice field with some nested Short Texts Image 4 Screenshot 113

    You can visit the Demo Form, so you can test it. If you want to clone it, let me show you How to Clone an Existing Form:

    1. Open your My Forms page and click on Create Form on the left side of the page.

    How to create multiple nested multiple choice field with some nested Short Texts Image 5 Screenshot 124

    2. In the window that opens up, click on Import Form

    How to create multiple nested multiple choice field with some nested Short Texts Image 6 Screenshot 135

    3. In the next window, click on From a Webpage

    4. Paste the form link into the Enter URL field and click on Create Form.

    How to create multiple nested multiple choice field with some nested Short Texts Image 7 Screenshot 146

    After cloning your form, it will open up in Form Builder automatically. Now, you can edit the way you want it and publish it.

    Give it a try and let us know if you need any more help.

  • Erick_Valentin
    Replied on April 18, 2024 at 5:43 PM

    Joshua, thank you for your response. I followed the instructions provided and successfully implemented the logic, but it appears to work in only one direction. Specifically, when the options are selected from top to bottom (American Native, Asian, Black, Hawaiian, White) and then "I do not want to provide my race" is selected, the previously selected options are cleared. However, running the logic from bottom to top allows "I do not want to provide my race" to be selected along with other race options, which is not the intended behavior. Can response to the account valentin_erick@outlook.com?, thanks

  • Mightor JotForm Support
    Replied on April 18, 2024 at 7:43 PM

    Hi OCS_AlertaPlus, 

    Thanks for getting back to us. You will need to create an Enable/Require/Mask Field condition, which has an option to disable the top fields if the user tries to answer the questions from bottom - up.

    How to create multiple nested multiple choice field with some nested Short Texts Image 1 Screenshot 30

    Here's the form once you create the above condition:

    How to create multiple nested multiple choice field with some nested Short Texts Image 2 Screenshot 41

    Give it a try and let us know how it goes.

 
Your Answer