I need help figuring out how to make a button switch back and forth between two values in a text box. When 1st value is displayed, click button and the 2nd value is displayed. When 2nd value is displayed, click button and 1st value is displayed again and so on.
The value in the text box is determined when a certain combination of radio buttons is checked. There are 2 sets of 2 (Yes/No) radio buttons. If yes and yes are checked then value1 appears in text box. Any other combination (yes/no, no/yes or no/no) then value2 appears in text box.
The idea is the user answers two question to determine the value but they are also given ability to change the answer if they want to. So I'd also like to clear the radio buttons when the switching (change button is clicked) occurs.
I can get the button to clear the radio buttons and I can get the text box value to change once, but on 2nd and subsequent clicks, it doesn't change back again.
For the switch rules on the button I have 2 rules:
Rule 1 - if textBox = value1, set textBox value = value2
Rule 2 - if textBox = value2, set textBox value = value1
For the clear portion of the button I have 1 rule
Rule 3 - if radioButton1 is not blank, or radioButton2 is not blank, set radioButton1 = ", and set radioButton2 value = ""
Any suggestions?