HR Agent Workspace Close Complete UI Action
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2022 12:33 PM
Is anyone experiencing issues with the Close Complete UI Action in HR Workspace? Our users have to click it twice for it to save.
We are using the same UI Action from Human Resources: Core application and have just completed the Workspace section. Maybe there is something wrong with the Workspace Client Script.
Any help will be greatly appreciated.
10 REPLIES 10
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello,
As an workarround what i have done, as g_form.setValue() apperently runs async, and g_form_save() excecutes immediately is to set a timeout on the form
function onClick(g_form) {
if (g_form.getValue('skip_automatic_user_acceptance_state') == 'true') {
g_form.setValue('state', 3);
} else {
g_form.setValue('state', 20);
g_form.setValue('sla_suspended', true);
g_form.setValue('sla_suspended_on', new Date());
}
setTimeout(function() {
g_form.save();
}, 500);
}
