How to set the select box value to none or clear the select box
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2023 10:27 PM - edited 04-12-2023 10:29 PM
I want to clear the select box value after clicking ok in alert message.
I have written the below script but it's not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2023 10:33 PM
try to use g_form.clearValue('variable/field name');
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2023 12:31 AM
We have used g_form.clearValue('variable/field name');
but it is not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2024 10:45 AM
Use this alternative
g_form.setValue("variable_name", []);
Please check and let me know if still facing the issue.