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:20 AM
Hello Riaz,
try g_form.submit();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2017 04:27 AM
Hi,
I tried g_form.submit();
However it does not save and return to the list
Thanks
Riaz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2017 04:32 AM
Oh so it is an UI Action, can't you simply say current.update();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2017 04:20 AM