Hello experts.
I have a simple form with a very long drop down list and two textboxes. I am using an array to populate textbox1 based on a value chosen in the drop down list, and this works as intended. Just a few of the values in the drop down list, but not all, should cause textbox2 to become read-only.
Does anybody have a sample script for this? Any help would be greatly appreciated.
I am using LiveCycle Designer ES 8.2 on Windows Vista 32bit.
Thanks,
Jerald
Solved! Go to Solution.
Views
Replies
Total Likes
You can make the TextField2 as readonly by using the Script based on the value from the Dropdown.
if(dropdoqn1.rawValue == "<ENTER VALUE HERE>"){
TextField2.access = "readOnly";
}
You can change the above script as you need..
Thanks
Srini
Views
Replies
Total Likes
You can make the TextField2 as readonly by using the Script based on the value from the Dropdown.
if(dropdoqn1.rawValue == "<ENTER VALUE HERE>"){
TextField2.access = "readOnly";
}
You can change the above script as you need..
Thanks
Srini
Views
Replies
Total Likes
Thanks for such a quick response. I tried the following using change event:
if(this.rawValue=="Acquisition of Real Property ")
{activityTxcdbgEngineeringAmountNum.access="readOnly"}
but it didn't work. Any ideas on what I'm doing wrong?
Thanks,
Jerald
Views
Replies
Total Likes
Sorry. It works now...I forgot the semi-colon.
Thanks for your help.
Views
Replies
Total Likes
If you are using the change event, using rawValue will give you some unexpected results..
Try using xfa.event.newText to get the predictable results..
Thanks
Srini
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies