Add text dependant on radio button
I have 3 radio buttons under the heading of 'Group3', the individual buttons have the export values of self, 60 and 150
I have 3 text fields selfA, 60A and 150A and what I want to happen is if someone selects the self option, the letter X appears in selfA, if they select 60, the letter Y appears in 60A and if they select 150, the letter Z appears in 150A
I can get this to 'sort of' work by using the following in the mouse up action of the radio box:
var cText = "Z";
this.getField("150A").value = (event.target.value == "Off")? "" : cText;
but it's obviously not right because while the letters do appear in the relevant fields, if the radio box selection is changed, the letters don't diappear from the other fields. I need to be left with the relevant letter that corrsponds to the box checked only, the other 2 text fields need to be empty.
