- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2018 09:12 AM
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
Solved! Go to Solution.
- Labels:
-
Personal Developer Instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2018 12:53 PM
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);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2018 09:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2018 09:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2018 10:25 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2018 10:31 AM
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.