I have a group with two check boxes (Yes and No). On selection I want to display some text in a field. There are four possible combinations (Yes only, No only, both Yes and No, and neither). At the moment i can get the script to work if only Yes is selected or only No is selected. What i can't work out is when both checkboxes are selected or when neither of them is selected (In these cases i want "I selected both" and "I selected none" to be shown in the field. This is what i have so far:
Code: Select all
on mouseup
if the hilite of button "Yes" is true
then put "I selected Yes!" into field "Field2"
if the hilite of button "No" is true
then put "I selected No!" into field "Field2"
end mouseup
Any suggestions would be much appreciated.
Grant.