My job depends on me getting this right. Based on the DDL selection (change) certain part of the function will run. I also have a numeric filed (exit) that will activate the function, which will reference the DDL selection and spit out an answer for a text field...Thanks for your help!!!
Here is my function and code for one of the DDL selection:
function fxnPrepopulateFields()
{
else if ( xfa.event.newText == "Research Scientist I-F" )
{
DropDownList8.clearItems();
DropDownList8.addItem("08160 F");
TextField16.rawValue = "NOT ELIGIBLE";
var total = ( NumericField9.rawValue )
{
if ( total > 0.89 )
TextField13.rawValue = "Faculty Benefits";
if ( total < 0.90 )
TextField13.rawValue = "Manager Benefits";
if ( total < 0.50 )
TextField13.rawValue = "PTO/ESL";
if ( total < 0.25 )
TextField13.rawValue = "No Benefits";
}
}
--------------------
1) What should I reference the DDL selection in code is it xfa.event.newText or DropDownList5.rawValue niether work right now?
2)When I run the code in the DDL5 it works only if I go back and select Research Scientist I-F again, this is based on the (change)event.
3)My "Script Object" is called Automation and I am referencing my function in the DDL and Numeric Field as: Automation.fxnPrepopulateFields();