How to restrict the fields visibility in catalog task through flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2022 01:42 AM
Is it possible to restrict the fields in catalog task through flow designer, we have 2 checkboxes for each field selection a catalog task is created, if user selected user able to select 2 checkboxes and submitted 2 tasks will be created, so here we are getting the problem on fields visibility in catalog task level, how can we restrict them..
example: 1)if user selected first checkbox only that field should be visible in catalog task
2) if user selected second checkbox then only selected field should be visible in catalog task
3)If user selected both fields, 2 tasks will be created but have to restrict the field visibility according to the catalog tasks...
Thanks,
Asish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2022 02:05 AM
Hi,
not possible via flow designer.
Flow designer runs in background and is server side.
To show/hide 2 ways
1) either use UI policy or onLoad catalog client script which Applies on Catalog task and show/hide the variables
OR
2) while creating the task via flow designer check which checkbox is selected based on that only add that relevant variable on catalog task in the Selected slush bucket.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2022 04:10 AM
Thanks for the reply!!!
Yes we can hide them through policies but the problem is when 2 tasks were created for 2 checkboxes so according to catalog task the field restriction should be done..
for example if checkbox1 is selected that field should be visible in CatalogTask1
and checkbox2 is selected that field should be visible in CatalogTask2 and checkbox1 should not be visible in this particular catalogtask2
2)And we tried through flow designer it didnt worked..
Thanks,
Asish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2022 05:04 AM
Should work with both the ways I mentioned.
which approach did you select? please share screenshots.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader