dear sir/madam,
my compliments for the best wordpress plugin ever!
I want to dynamically populate a hidden field, or admin only field called "output".
To do this I want to use 2 questions using radio buttons.
Question 1 has 2 answers: "yes" (I gave it a value "4"), and "no" (value 2).
Question 2 has 3 answers: "yes" (value 4), "sometimes" (value 3) and "no" (value 2).
I want to use the sum of the values of question 1 and 2 and populate the dynamic field "output" like this:
if question 1 + question 2 = 8 => "everything"
if question 1 + question 2 = 7 => "almost everything"
if question 1 + question 2 = 6 => "sometimes"
if question 1 + question 2 = 5 => "sure thing"
if question 1 + question 2 = 4 => "no"
I tried to do this using a hook, but I can't figure it out.
Can someone help me with this?