The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group

Slack Signup
Newsletter Optin
Help Desk

Personality test using checkboxes

Labels

This Discussion is public

Notifications

how do I add values to a specific field (red, blue, green or yellow) when a box is checked?

 

I have a series of fifty personality traits. Each trait will increase your likelihood of being one of four personality types. The end result will be a pie chart.

Example: after reading the list, the user identifies them selves as :

Empathetic = one point in the "green" category.

Detailed = one point in the "blue" category

The user does not click on any other box.

The resulting pie chart is 50%green & 50% blue with 0% red or yellow personality traits.

 

I want all of the checkboxes on screen at once and to have them randomly ordered each time they take the test.

 

But firts: how do I add values to a specific field (red, blue, green or yellow) when a box is checked?

You can go to http://formi.immofizz.fr and click on TEST 4

Is that what you are trying to do?

Hi Frank, I'm not sure if you're wanting to make the actual form fields change color when the user inputs data? If you're looking for that, it would obviously require custom code. However, if you're simply looking to make your pie chart colors, here's a handy tutorial from Nathanael in the blog.

Discussion closed.