I have a checklist I would like to make digital. The questions are all yes/no and color-coded by a condition level. I am able to color code the questions but my question is, how do I display the total for each condition after or during (running total) the form being answered? Example: Color-coded conditions:
Green - No problem
Yellow - Cause for concern
Red - serious problem
Red - Does the device turn on? Yes or No radio buttons
Green - Is the device up to date? Yes or No radio buttons
Any suggestions would be appreciated.
Thanks,
Frank
Then, you will add three new fields in your form, where you will ultimately store the Green, Red, and Yellow score totals.
If you check the box ‘show values’ for the radio button Yes/No choices and give Yes a value of 1 and No a value of 0, you can loop through all the fields in the form with gform_pre_submission filter, color by color, sum up the submitted choices, and then store the totals in the three fields you added to the form.
It’s a little bit of PHP, but it’s not complex. If you have any other questions, please let us know.