- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Good day!
Is it possible to make a section of the catalog request form only available to certain group of users?
Example, a set of questions are only applicable and visible to users in Poland.
Thank you!
Regards,
Jocelyn
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Yes why not.
You can use onLoad catalog client script and check logged in user's location.
if not Poland then use g_form.setDisplay('variable1', false); to hide
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Hi @JLeong ,
You can do it using the UI policy. Keep onLoad checked and reverseIfFalse.
Add your specific condition then write the below script in execute if true
function onCondition() {
g_form.setVisible('section_name', true); //setVisible true/false based on your condition
}
Thanks,
Bhimashankar H
-------------------------------------------------------------------------------------------------
If my response points you in the right directions, please consider marking it as 'Helpful' & 'Correct'. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Could you kindly confirm that the script you shared is fully functional?
When I ran it, it returned undefined.
To prevent any confusion, please share only verified, working code along with accurate references to documentation.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Hi @JLeong ,
You can do it using the UI policy. Keep onLoad checked and reverseIfFalse.
Add your specific condition then write the below script in execute if true
function onCondition() {
g_form.setVisible('section_name', true); //setVisible true/false based on your condition
}
Thanks,
Bhimashankar H
-------------------------------------------------------------------------------------------------
If my response points you in the right directions, please consider marking it as 'Helpful' & 'Correct'. Thanks!