First, let me say that I'm using the built in JS in adobe acrobat x standard, this is important because theres limited functionality with this that needs to be understood before a solution can be determined.
My problem is the following:
I'm building a form, the simple version is that when a user selects an item from a dropdown box that inturn updates several text fields with data related to the choice they made. Seems simple right? The coding is very simple with this setup, and if you're familiar with the JS in adobe then you know I'm using the calculate JS function to do all this work.
The catch is the following:
using: if (this.getField("dropdown1").value = "abc") event.value = "xyz";
the problem with this is that these two fields now linked, the text box is always displaying xyz regardless on what the dropdown reads and after an extra click it will even reset the dropdown to read as "abc".
Also, after this value is assigned no conflicting arguments are allowed and thus the text field gets locked in with the data regardless.
I was wondering if any of you fine programmers out there know a work around for this. I appreciate any help on the matter.