Export Value JavaScript question
Is it possible to have more than one export value populate to the same text field depending on what the user chooses?
I have 2 dropdown fields 1)Employee 2)Absence that I've put export values on to populate to a text field named Pay Type.
I added the the JavaScript below to the custom calculation script in PayType which works for one dropdown field, but I'm not sure if you can make it work for both Employee and Absence dropdowns
event.value = this.getField("Employee").value;
Eg. if the user chooses from the Employee dropdown the export value populates to PayType but if they choose from the Absence dropdown I'll need that export value to populate in PayType, but if the user removes the selection from the Absence dropdown I'm hoping it will populate the export value again from the Employee selection?
I'm hoping if it can be done and/or I can figure out how to do the JavaScript it just might help resolve an issue I'm having with my form.
