Different fill colors for same name Check Boxes
I'm new to building forms and using JavaScript.
I have two check boxes in my form. Both with the same name because I don't want users to be able to check both. One with an export value of Yes and One with an export value of No. I simply want the fill color of one to be green when checked and the other to be yellow when checked. I don't want them to be green and yellow constantly as they would if I set their fill color in the appearance tab.
I can use the following JavaScript, which works, but since the boxes are the same name it turns both boxes the same color.
if(event.target.isBoxChecked(0))
{event.target.fillColor = color.green;}else event.target.fillColor = color.white;
I'm sure I am missing an easy solution. Or maybe not? Any help would be appreciated.
