How to display a final color result based on multiple answer values (green/yellow/red)?

By: Baudouin Duriez | Asked: 06/26/2025
ForumsCategory: How-toHow to display a final color result based on multiple answer values (green/yellow/red)?
Baudouin Duriez asked 2 weeks ago

Hi,
I’m trying to build a form with 5 questions. Each question offers 3 sentence-type answer choices (not just “Green / Yellow / Red”), but each choice is internally associated with a color value: Green, Yellow, or Red.
At the end of the form, I want to display a final color result based on this logic:

  • If all answers are Green → Final result is Green
  • If there’s only 1 Yellow (and the rest Green) → Final result is Green
  • If there are 2 or more Yellows → Final result is Yellow
  • If there is at least 1 Red → Final result is Red

I don’t want to display a score — just a single color result at the end.
What’s the best way to handle this with hidden fields or conditional logic in Formidable Forms?
Thanks a lot for your help!

-----

Bonjour,
J’essaie de créer un formulaire avec 5 questions. Chaque question propose 3 réponses sous forme de phrases (ce ne sont pas simplement "Vert / Jaune / Rouge"), mais chaque réponse est associée en interne à une valeur de couleur : Vert, Jaune ou Rouge.
À la fin du formulaire, je souhaite afficher un résultat final sous forme d’une couleur, selon la logique suivante :

  • Si toutes les réponses sont Vert → le résultat est Vert
  • S’il y a seulement 1 Jaune (et le reste en Vert) → le résultat est Vert
  • S’il y a 2 réponses Jaunes ou plus → le résultat est Jaune
  • S’il y a au moins 1 réponse Rouge → le résultat est Rouge

Je ne veux pas afficher un score, uniquement la couleur finale.
Quelle est la meilleure manière de faire cela avec des champs cachés ou la logique conditionnelle dans Formidable Forms ?
Merci beaucoup pour votre aide !

1 Answers
Bobby Clapp Staff answered 2 weeks ago

After the form is submitted or at the end of the form before it is submitted?

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