How can I save Task without filling mandatory field?.

ND7
Kilo Sage

 Dear Experts,

 

I need to be able to save this form without filling in mandatory fields. Before filling out the Mandatory field in SCTASK, the technician needs to put their name and pending ticket number. 

But currently, it is not possible to do.  

 

ND7_0-1665078959990.png

Please Help!!!

Thank you

 

1 ACCEPTED SOLUTION

ND7
Kilo Sage

BEST solution for this was to Create a Ui Policy on the Table level. Fixed it 

 

View solution in original post

6 REPLIES 6

ND7
Kilo Sage

function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;

}


if(g_form.getValue('state') == -5)


{


g_form.setMandatory('add_emp',false);


}


else{


g_form.setMandatory('add_emp',true);


}

 

 

DID NO WORK 😞 

 

ND7
Kilo Sage

BEST solution for this was to Create a Ui Policy on the Table level. Fixed it