- 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 11:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2018 12:14 PM
That worked, thank you so much!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2018 12:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2018 12:39 PM
Did you set them non mandatory? there might be a typo in the script. Please check again. It works fine in my instance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2018 12:46 PM
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);