Expand my Community achievements bar.

SOLVED

Delayed reaction on "Visibility" change

Avatar

Level 2

The attached form has a "Specify Other" text field that should become visible when "Other" is selected from the "Role" drop-down list. In practice, when you select "Other", the "Specify Other" field doesn't become visible, but when you make any other selection after "Other", the "Specify Other" field becomes visible. This means that you effectively have to select "Other" twice to be able to complete the "Specify Other" field (which becomes required when "Other" is the selected "Role", whether the "Specify Other" field is visible or not).

https://acrobat.com/#d=N6JAgPgsrSX1D03Nv09oCw

Anyone seen this problem before and figured out how to make it work correctly?

1 Accepted Solution

Avatar

Correct answer by
Level 10

Dropdown selections aren't immediately available as a rawValue - the value doesn't register until you exit the field, so your code should work fine on the Exit event.

You can use xfa.event.newText to get the selected value, so try this as your if statement:

if (this.boundItem(xfa.event.newText) == 6)

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Dropdown selections aren't immediately available as a rawValue - the value doesn't register until you exit the field, so your code should work fine on the Exit event.

You can use xfa.event.newText to get the selected value, so try this as your if statement:

if (this.boundItem(xfa.event.newText) == 6)