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

Ankit P
Mega Guru

This is where the issue lies. On the UI Policy, you need to select Applies on the Target Record.

find_real_file.png

Mark correct if that helps.

Hi Ankit thanks for the reply. I don't seem to have that option. We are still using UI15 (Unfortunately)

Any other ideas? 🙂

 

find_real_file.png

Have you made them mandatory on Dictionary level? Please make sure you use only UI Policy and Client script to set them mandatory or hidden.

Hi Ankil, I didn't make them mandatory directly in variable definition/dictionary level. I made sure of it as this causes issue during submission...They are only being set to mandatory/hidden using ui policy. Thanks again for replying. Appreciate it.