I have a drop-down list that I have populated. When an item is chosen from the drop-down list it automatically shows the code for that item in another field. I have put these codes in in the Binding section. The problem I'm having is that if a person chooses an item from the drop-down list and then change their mind, the code from the original item stays in the field as well as the new item code.
Is there any way that the field can automatically change to the new item code?
Thanks.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
In the change event of the drop down you can use code similar to;
TextField1.rawValue = this.boundItem(xfa.event.change);
Where TextField1 will be your field that needs to be keep in sync.
Here's an example that might help, https://acrobat.com/#d=p*6x4WA4w8NDDlMvq*aspg
Bruce
Views
Replies
Total Likes
Hi,
This sounds like something you could do by binding the two fields to the same data node or by using global binding if you don't have a data connection.
How is the other field being updated at the moment, I would have put some code in the change event of the drop down list, which should keep the other field in sync also.
Bruce
Views
Replies
Total Likes
Thanks for that Bruce. Can you explain the code that is required in the change event to keep the other field in sync?
Views
Replies
Total Likes
Hi,
In the change event of the drop down you can use code similar to;
TextField1.rawValue = this.boundItem(xfa.event.change);
Where TextField1 will be your field that needs to be keep in sync.
Here's an example that might help, https://acrobat.com/#d=p*6x4WA4w8NDDlMvq*aspg
Bruce
Views
Replies
Total Likes
Views
Likes
Replies