I am creating a form that ultimately becomes a published page of directions. After the user selects an item in the drop down list, is there a way to make the arrow hidden. It would need to be redisplayed if the user click in the field again.
Here is the script I put on the Exit event of the drop down list. Nothing is happening. I don't get any error messages either.
if(xfa.event.newText == "3")
if(xfa.event.newText == "5")
if(xfa.event.newText == "7")
if(xfa.event.newText == "8")
The numbers are the values, not the rawValue.
Thanks for your help.
to reshow the drop down arrow, in the enter event use this line
this.access = "open"
Well, I'm making progress based on your last email. I moved the script to the change event and it works perfectly. Now, I'm not sure how to get the ability to reshow the drop down arrow if the user re-enters field.I kept the script in the enter event. The numbers are actually the displayed value, not the rawValue. so that's working ok.
Thanks again for all your help.
the newText property returns the displayed value chosen, if you want the use the numbers, you should use rawValue if you have the property Specify item values checked
Also, the newText property should only be used in the "Change" event, in the exit event it only returns an empty string.
If you want to use a similar property to newText in the exit event, use DropDownList1.getDisplayItem(DropDownList1.selectedIndex);
But because you are using the numbers as conditions in your if statements, you should be using rawValue, and make sure the check box Specify item values is checked!
Hope this help!
The only way I'd see this possible is:
on the Exit Event of the field, if a value is chosen, you set the access's field to be "readOnly"
on the Enter Event of the field, you set the access's field to be "open"
Hope this help!