Answered
This is so basic, I am embarrassed.
I have a series of radio buttons (with the choices a & b), that when checked, wants to return a value (1, 0) into a text box. The returned values get added up at the end.
What is the script that I should be using to transfer the value from the button to the text box? I have tried all sorts of things and just can't get it to work. I have seen examples of this, but cannot emulate it. Help!
Sorry for such a basic question.
Thanks.
// Calculate script
event.value = (getField("rb1").value === "Off") ? "" : getField("rb1").value;
Replace "rb1" with the name of the corresponding radio button.
If you ensure that one of the radio buttons is always selected, you can use "Value is the Sum of" or simplified field notation instead of a script.