Is it possible to hide variable container in requested item [sc_req_item] form using a client script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2013 07:00 AM
With Service Catalog requested item I've tried different ways to hide the container in the requested item form but none of my attempts have worked. I seem to be able to hide other variables but I am having problems finding a way to hide containers. I would like to show/hide them based on specific criteria. Would anyone know the trick to hiding containers in a requested item form?
Syntax that I've tried:
g_form.setDisplay('variables.container name',false);
g_form.setVisible('variables.container name',false);
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-19-2013 05:03 PM
I have found that it is hard to script against containers. As a rule I use labels now. 😄
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-01-2020 11:00 PM
Hi Team,
Yes !!!! We can Show/Hide "Container Start" Variable' Display Value for a Catalog Item in Portal.
Note:- I have fixed by Using "UI Policy Script" and "UI Policy Action".
1. Create an UI Policy as per your condition to Show/Hide the "Container Start" field LABEL.
2. Write below Script Together on Script Part-
SCRIPT:-
function onCondition() {
g_form.setDisplay('variables.high_performance_computing_linux_unix_ah', false)// Enter the Value of the Variable.
}
3. Create UI Policy action for the "Container Start" variable and Make below changes
A). Mandatory = FALSE
B). Visible = FALSE.
RESULT:- Now Based on condition. "Container Starts" field Label can be Show/Hide.
************************************************************************************************************************************************************
Example:-
Before Condition Fulfilled- "Container Start" Variable Field Label "High Performance Computing" Can bee seen.
AFTER CONDITION MATCHED:-
"Container Start" Variable Label is HIDDEN-
Important:- "Container End" Variable Should be Just after "Container Start" Order. You May adjust later for other variable with New Container Start but to Achieve this you have to Create 1-1 (Container Starts && Container End).