2 Replies Latest reply on Mar 29, 2009 9:03 AM by (Michael_Frommer)

    What's wrong? Script shouldn't be changing CheckBox selection.

    Level 1
      I have 2 check boxes named "AttendeeType1" with export value = "Member" and "Non-Member" respectively. I am using the following script in a text box.

      if (this.getField("AttendeeType1").value = "Member") {event.value = 1;} else {event.value = 0;}

      It returns a value of 1 regardless of which check box is 'on'. But, if the 'Non-Member' checkbox is 'on' (selected by the user), it is deselected (turned 'off') and the 'Member' checkbox is turned 'on' (selected).

      I do not want the user's selection to be changed.