I am trying to write an if then statement using radio buttons. I have one radio button group (Group B) and 5 choices: 1-Never, 2-Less than monthly, 3-Monthly, 4-Weekly, and 5-Daily or almost daily. If someone clicks Never, I want a "No" to appear in a Text field. If any of the other choices are selected, I want "Yes" to appear in the Textbox. I have been trying a number of things, but I don't even know if I'm close. Any help would be greatly appreciated.
Use this as the custom calculation script for the text field:
var v = this.getField("Group B").value;
if (v=="Off") event.value = "";
else if (v=="1-Never") event.value = "No";
else event.value = "Yes";