- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2020 11:29 PM
How to hide mandatory variable in catalog item. This variable is mandatory in variable set
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-22-2020 01:33 AM
It is working with UI Policy with condition Mandatory, visible, read only to false.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-22-2020 12:45 AM
function onLoad(control, oldValue, newValue, isLoading) {
g_form.setMandatory('u_environment_catalog', false);
g_form.setDisplay('u_environment_catalog', false);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-22-2020 12:45 AM
I tried this script but doesn't work for me
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-22-2020 12:50 AM
You tried this as well?:
Below changed to setVisible
function onLoad(control, oldValue, newValue, isLoading) {
g_form.setMandatory("u_environment_catalog", false);
g_form.setVisible("u_environment_catalog", false);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-22-2020 01:26 AM
Hi Williem,
Yes, I tried setvisible as well but doesn't works.
Regards,
Krishna N.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-22-2020 01:34 AM
It is working with UI Policy with condition Mandatory, visible, read only to false.