Conditional font color based on radio selection
Hi community,
I am stuck on a pdf form condition. I have tried many options but none seem to be working for me. I am very new to all this so I am hoping someone will be able to help.
I have a form that will have radio buttons. If user selects Option 1, the number 1 will show up in the text box beside the statement. If the user selects Option 2, the number 2 will show up, etc.
I have been able to achieve this using the following code in the calulations script:
switch(this.getField("Group7").value)
{ case "Choice1": event.value = 1;
break;
case "Choice2": event.value = 2; break;
case "Choice3": event.value = 3; break; }
I am wonder how I can make the text red if it is a value of 1 or 2.

Thank you!