In order to have a more dynamic form, I have taken the project to LiveCycle. And of course, the JS needs to be changed.
I have tried this where ClassCode1 is the combo box and DescriptionRow1 is the desired field I want to auto fill:
in the combo box, with Show : mouseExit and the Object Field type is combo box
AND in the text field with Show : mouseExit and the Object Field type is text field - both
if (this.rawValue = '0042'
DescriptionRow1.value = 'Landscape';
else (this.rawValue = '3724'
DescriptionRow1.value = 'Millwright'; //with no result, and
if (this.rawValue == '0042'
DescriptionRow1.value == 'Landscape';
else (this.rawValue == '3724'
DescriptionRow1.value == 'Millwright'; //with no result, and
if (ClassCode1.rawValue == '0042'
DescriptionRow1.value == 'Landscape';
else (ClassCode1.rawValue == '3724'
DescriptionRow1.value == 'Millwright'; //with no result
Thanks for your help.
There is also an 'els if' statement. Again you need to close your logical statement with a closing ')'.
The equality comparison operator is '=='.
The set value operator is '='.
What error messages are you getting?
George Kaiser