after your clearOptions, use addOption to add options back to a dropdown variable (add option takes 3 parameters including label and value)
to add an empty option at the top, use g_form.addOption('environment', 'none', '--None--'); //--force a selection not default
Comments
Post a Comment