Need Help Implementing Conditional Logic for Likert Scale in Form to Show Arrows

By: NATE Qureshi | Asked: 11/28/2023
ForumsCategory: General questionsNeed Help Implementing Conditional Logic for Likert Scale in Form to Show Arrows
NATE QureshiNATE Qureshi asked 5 months ago

I'm working on a form that incorporates Likert scale responses (fields labeled with numerical references like 169, 170, etc.). I'm seeking guidance on implementing conditional logic to display images or elements based on specific combinations of Likert scale values. I have to show Strength or Development arrows on each side here is image  Here's an example of the conditions I need to address:

  • If [169, 170, 171, 172] have values greater than or equal to 5, display an image related to development.
  • If [170, 171, 172] have values greater than or equal to 5, display an image for a different condition ([184]).

Following are the maxium conditions I can have and I just need solution so I can turn on/off images depends on condition --- conditions are just greator than equal to 5or less than 5, values are stored in four field ID's = 169,170,171,172

If [169,170,171,172] ≥ 5, Show(169(Strength) - 0 Development

If 170,171,172] ≥ 5, Show(170(Strength) – 1 Development

If [169,171,172] ≥ 5, Show(171(Strength) – 1 Development

If [169, 170,172] ≥ 5, Show(172(Strength) – 1 Development

If [171, 170,169] ≥ 5, Show(169(Strength) – 1 Development

If [171,172] ≥ 5, Show(171(Strength) – 2 Development

If [172,169] ≥ 5, Show(172(Strength) – 2 Development

If [171,170] ≥ 5, Show(170(Strength) – 2 Development

If [170,169] ≥ 5, Show(169(Strength) – 2 Development

If [172,170] ≥ 5, Show(170(Strength) – 2 Development

If [171,169] ≥ 5, Show(169(Strength) – 2 Development

If [171] ≥ 5, Show(171(Strength) – 3 Development

If [170] ≥ 5, Show(170(Strength) – 3 Development

If [172] ≥ 5, Show(172(Strength) – 3 Development

If [169] < 5, Show(169(Development) – 3 strength

If [170] < 5, Show(170(Development) – 3 strength

If [171] < 5, Show(171(Development) – 3 strength

If [172] < 5, Show(172(Development) – 3 strength

If [169,170] < 5, Show(170(Development) – 2 strength

If [170,171] < 5, Show(171(Development) – 2 strength

If [172,169] < 5, Show(172(Development) – 2 strength

If [172,171] < 5, Show(172(Development) – 2 strength

If [171,169] < 5, Show(171(Development) – 2 strength

If [172,170] < 5, Show(172(Development) – 2 strength

If [169,170,171] < 5, Show(171(Development) – 1 strength

If [169,171,172] < 5, Show(171(Development) – 1 strength

If [169,171,170] < 5, Show(169(Development) – 1 strength

If [171, 170,172] < 5, Show(172(Development) – 1 strength

If [169,170,171,172] < 5, Show(172(Development) – 0 strength

Waiting for a Positive Response NATE

1 Answers
Victor Font answered 5 months ago
This is pretty complex and would best be handled through jQuery/CSS. You can jQuery.hide() or jQuery.show() the arrows in real time by toggling CSS classes as long as jQuery monitors the field change events and controls the binary logic.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right