- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2022 08:10 AM
How to hide the checkbox variables in Ritm when they are unchecked and show only checked variables
It is showing all variables
can i know which catalog client script i should use
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2022 05:36 AM
Okay then in that case first revert the changes which I suggested above and make your Line number 10 look like below:
<div ng-if="variable.type !='7' || (variable.type =='7' && variable.display_value!='false')">
Now for your new requirement, update line number 25 as below:
<span ng-if="variable.type !='7'" ng-switch-default class="pre-wrap">{{::variable.display_value}}</span>
This is working as you need.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2022 02:53 AM
Code looks correct to me. Can you confirm on below points:
1) Can you refresh your instance cache which you can do by typing "cache.do" and hit enter in Application Navigator menu
2) Can you confirm like for example "Docking Station" is a variable or some custom macro where a widget is being used on your catalog form?
3) Can you confirm the checkbox on the form is a variable only with the value of it being 7 which you can check by going to Variables table and then open that Variable record and Right click on the header and then click on Show XML.
Then search for by doing Control + F and check the value of type is 7 on variable form or not.
This works perfectly well for me in my PDI.
Hope this helps. Please mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2022 01:56 AM
Hi Shloke
It's working fine now
Thank you so much!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2022 12:07 AM
Hi shloke
now I don't want to see the name 'true' only for check box variables
Here after i did changes in variable summarizer widget.
Line: <span ng-switch-default class="pre-wrap">{{::variable.display_value}}</span>
after changes to
Line: <span ng-switch-default class="pre-wrap"></span>
here i removed {{::variable.display_value}} I can't see the requested for and IT manager name below the variables
How to exclude the value if the variable type is checkbox
my question is i want to see the names for requested for and IT manager variables only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2022 05:53 AM
If you do not want to show Checkbox type of variable then you need to modify the same line of code as explained above i.e. Line Number 10 and update it as below:
<div ng-if="variable.type !='7'">
This works for me in my PDI.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2022 07:50 AM