on 02-26-2008 6:17 AM
Hi
How can i change the Properties of The fieldsin adobe form at Runtime like readonly property to true or false.
Thanks
Sunitha Hari
Sunitha,
You can easily achieve this in Javascript or FormCalc. Lets say you want the Texfield called txtName to be invisible. ON form:initialize event add the following code and change the language to Javascript:
txtName.presence= "invisible";
Additionally if you want set value you can use
<Textfield-id>.value = "<some value here>"
or if you want the field to be readonly use
<Textfield-id>.access = "readOnly";
at runtime.
For eg:-
txtName.value = "Chintan";
txtName.access = "readOnly"
The Designer help is very useful in such cases. Please refer it.
Chintan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.