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
All things ServiceNow... take a look at my channel: https://www.youtube.com/@cloudminus89