HR Agent Workspace Close Complete UI Action

Suzanne H
Tera Guru

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. 

SuzanneH_0-1669926711069.png

Any help will be greatly appreciated.

 

10 REPLIES 10

manea
Tera Contributor

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);
}