Answered
I am trying to create a pre-populated field using an IF statement. Unfortunately something isn't registering correctly because it does not seem to want to work.
I am using a drop down list to auto-fill the next line. I have set the values to the items in the drop down list. Here is the beginning of my statement using JavaScript:
if (this.rawValue = 1) then
InsCo="American"
endif
My goal is when a specific code is selected (1), then the next line should read American.
Any ideas?
Thanks.
if (xfa.event.newText == 1) {
InsCo.rawValue ="American";
}
Good Luck!