logo

NJP

ServiceNow Clearing and Repopulating Variables on Service Portal Catalog Item

ServiceNow Blog · Jan 28, 2026 · article

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

View original source

http://www.cloudminus89.com/2026/01/servicenow-clearing-and-repopulating.html