I'm working in Forms 2.0 and know how to hide/show fields. What I would like to do is show/hide field values based on multiple selections:
FIELD NAME - Product name: FIELD VALUES- Product A, Product B, Product C, Product D....
FIELD NAME - Support Representative: FIELD VALUES - Rep A, Rep B, Rep C
If Product A is chosen, only Rep A displays in the picklist
If Product B is chosen, only Rep B displays in the picklist
If Product C is chosen, only Rep C displays in the picklist
If Product A AND B are chosen, only Reps A AND B display in the picklist
If Product A AND C are chosen, only Reps A AND C display in the picklist
If Product B AND C are chosen, only Reps B AND C display in the picklist
If Product D is chosen, Reps A, B and C display in the picklist
My values go well past three values and I am trying to avoid creating numerous new fields to hide/show and would prefer to use a single field if possible.
Solved! Go to Solution.
{ "Product A": { "Rep A": true }, "Product B": { "Rep B": true }, "Product C": { "Rep C": true }, "Product D": { "Rep A": true, "Rep B": true, "Rep C": true } }
{ "Product A": { "Rep A": true }, "Product B": { "Rep B": true }, "Product C": { "Rep C": true }, "Product D": { "Rep A": true, "Rep B": true, "Rep C": true } }
Sanford - your example is exactly what I am looking for, although I'm not clear regarding the placement of the script. I'm not a developer, but can read/write code based on examples like the one you provided and know that once I understand the placement I can make the code you shared work for me . Thanks for your help!
Regards,
Chris