Record Producer variables showing as mandatory on INC even though they are set to be hidden

reginabautista
Kilo Sage

Hi guys,

 

I have a 3 mandatory variables in my record producer that is being hidden when the answer to question "What does the issue relate to?" is Risk and Trading Application. I set them to non mandatory and hidden using a UI Policy. Once the form is submitted, it creates an INC record. However, those fields that are hidden somehow shows as mandatory on the Incident form. Would anyone know why and how to resolve? Thanks - Regina

find_real_file.png

 

1 ACCEPTED SOLUTION

hmm,

Please try this:

setTimeout(myFunction, 2000);

function myFunction(){

g_form.setMandatory('variables.u_service_affected',false);
g_form.setDisplay('variables.u_service_affected',false);
g_form.setMandatory('variables.u_classification',false);
g_form.setDisplay('variables.u_classification',false);
g_form.setMandatory('variables.u_channel',false);
g_form.setDisplay('variables.u_channel',false);

}

View solution in original post

13 REPLIES 13

I got it finally.

Create an onLoad Client script on Incident table.

And in the script section do something like this: I have tested this in my personal instance.

find_real_file.png

That worked, thank you so much!

oh no they've become hidden but still mandatory 😞

 

Did you set them non mandatory? there might be a typo in the script. Please check again. It works fine in my instance.

Yeah I did, here's my script:

 

g_form.setMandatory('variables.u_service_affected',false);
g_form.setMandatory('variables.u_classification',false);
g_form.setMandatory('variables.u_channel',false);
g_form.setDisplay('variables.u_service_affected',false);
g_form.setDisplay('variables.u_classification',false);
g_form.setDisplay('variables.u_channel',false);