Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2020 05:21 AM
Hi Vaishnavi,
you can use this code in the UI action; It should be client side UI action
Onclick: clearFields();
Script:
function clearFields(){
var allFields = g_form.getFieldNames();
for(var fieldName in allFields){
g_form.clearValue(fieldName);
}
}
Regards
Ankur
Regards,
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader