I am trying to replace the values in a dropdown based on the current step value. At the moment, I have the {/_current_step_name} set as a default value in a temporarily unhidden single line field.
LFForm.onFieldChange(function() { var mNum = LFForm.getFieldValues({fieldId: 63}); if (mNum.match(/.*Probation.*/)) LFForm.changeFieldOptions( { fieldId: 40 }, [{label: "Current"},{label: "Ending Employment"}], "replace" ); }, {fieldId: 63});
This works if I manually change the field 63 value. However, I would like the change to happen when the form loads. Can this be done?
I have been going over these forums for hours :)
Forms 12