on 01-30-2008 12:36 PM
Enabling/Disabling of UI Element based on selection of Radio Button. In my case I have two radio buttons : Yes and No
If the user selects No then some of the desired fields should be visible and hidden . Could you please help me on this by providing some Samples or stuff. Specifically to FormCalC.
Hi Neha,
On Select event of Radio button, you have to check the value selected and if it is "No"
then hide the field
I am assuming the value to be 2 when you are selecting radio button NO
This is the sample javascript code. Hope you will get an idea.
var checkVal = this.rawValue;
if ( checkVal == 2)
{
xfa.resolveNode("<FieldName>").presence = "invisible";
}
Please contact me if you are facing any problem with the sample code.
Cheers
Satya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.