I am trying to show/hide a table when a choice is made from a drop-down menu. It doesn't work until I make the same choice twice, then I get the expected result. The script is under Change and I have used it before successfully, albeit it has typically been using a check box. Is there an easy fix hopefully for this problem? Code below:
if
(this.rawValue == 2)
{
form1.Page1.OrderSection.OrderItems.Blower.presence
= "visible";
}
else
{
form1.Page1.OrderSection.OrderItems.Blower.presence
= "hidden";
}
Thanks
Solved! Go to Solution.
Views
Replies
Total Likes
Drop-down lists work a little differently than expected; in the Change event the rawValue contains the previously selected text. That's why it works the second time. The current selection is contained in: xfa.event.newText
Views
Replies
Total Likes
I think the property value you want is "invisible".
Views
Replies
Total Likes
Nope, that's not it. Needs to be Hidden as opposed to Invisible, and doesn't with that either. The issue is why does the drop-down value have to be chosen twice instead of once to work?
Views
Replies
Total Likes
Drop-down lists work a little differently than expected; in the Change event the rawValue contains the previously selected text. That's why it works the second time. The current selection is contained in: xfa.event.newText
Views
Replies
Total Likes
That was it. I was able to find an example of that code used somewhere and change it to make mine work. Thanks
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies