How To Reset All Fields Values
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2018 01:32 AM
I want to reset value of all fields once I click on reset button.
It should reset all the fields including text box drop down etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2018 01:47 AM
To delete the values of the fields, we can use the following methods:
use g_form.clearoptions() to disable the values from choice lists and
use g_form.clearvalue(fieldname) to clear the value of the field. Create a UI action with the button named "Reset" and write code using the mentioned commands.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2018 04:35 AM
Hi,
This is not working for drop down.
Please find the script for UI action below:
function reset() {
//x_58872_needit_needit
g_form.clearoptions();
}