UI Action to save and update
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2017 04:13 AM
Hello,
I have the below UI action which works great. However, when it is clicked I would like the record Updated (Saved).
What do I need to add to the script in order for this to happen?
function listener(){
var formalName = g_user.getFullName();
g_form.setValue('state');
g_form.setValue('state',"Closure Requested");
g_form.setValue('work_notes',"Requested Closure");
}
Thanks
Riaz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2017 04:29 AM
Hi Sneha,
Sorry confused by your code. All I need is when the Request Closure button is clicked it changes the state and then Updates the record so it rsaves and returns back to the list
Thank,s
Riaz

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2017 04:40 AM
Hello Riaz,
Try to put current.update();
Best regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2017 05:07 AM
Hi Riaz,
Try below code at the end of your script.
if(g_form.isNewRecord()){
} else {
gsftSubmit(gel('sysverb_update'));}
}