Requirement imple

pramn
Tera Guru

Team , 

can some one help me how do i implement below requirement 

when the Agent want to work on the case- he want to Assign it to himself
by clicking on the button 'Assign to me'
Expected result: the case will be assigned to the Agent
Actual result: the case can be assigned, only after filling in all the mandatory fields
And it doesn't make sense... in case a Team member wants to assign the case to a certain Agent, who will work on the case

1 REPLY 1

Claude DAmico
Kilo Sage

This is probably a good case for a UI Action that runs both Client and Server code.

 

function onClick() {
     g_form.checkMandatory = false;
     gsftSubmit(null, g_form.getFormElment(), 'ui_action_name');
}

if(typeof window == 'undefined');
     runServerCode();

function runServerCode() {
     current.assigned_to = gs.getUserId();
     current.update();
     action.setRedirectURL(current);
}

 

Claude E. D'Amico, III - CSA