I have a option button with 3 values.
Based on the each value i am loading a panel with controls in it.
i want to reset the values in the panel when the option button value is changed to different value.
Eg: Option button
Value 1--- Panel1(controls)
When value1 is changed to value 2 i want to reset the controls in panel one.
Solved! Go to Solution.
you have to do 'reset' per every single control, there is no general function that would do it for all the controls in a panel.
since you named the topic "I want to reset the option button values" I provided an example for option buttons. if you need for another controls, please specify exactly what you need.
I have 3 panels with multiple option buttons in each panel. A single panel loads based on the value of the option button selected. But when the option button value is changed i want to reset the values option buttons in the panel.
I am using the below to reset the values to default value but i am unsuccessful
var obj = NWF$("#" +Choices);
NWF$("#" + TextBox ).val('');
do you get any error on developer console?
Thanks in advance.
that all sounds to be correct.
similarly I did for 'TextBox'
when I ran the form
and changed an choice option, text box got correctly cleared
Thanks for the help.
But I wanted it for the option box instead of text box.
And i figured it out and it all worked.
Thanks again for your support