- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2025 12:17 PM
i want to hide few checkboxes on portal page of a catalog item based on requested by email variable
example: if requested by email ends with path.us then show only few boxes, hide remaining boxes
i tried creating UI policies and client scripts but no use, can anyone help in this regard please...
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2025 05:17 PM
@Radhika devi Could you please try the following and let me know if it works.
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading) return;
g_form.getReference('requested_by_email', function(requestedBy) {
if (requestedBy && great_plains == 'true') {
if (requestedBy.email.endsWith("wellpath.us")) {
g_form.setDisplay('corp_director_of_accounting', true);
g_form.setDisplay('corp_sub_senior_accountant', true);
}
} else {
g_form.setDisplay('corp_director_of_accounting', false);
g_form.setDisplay('corp_sub_senior_accountant', false);
}
});
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-22-2025 06:33 PM
@Radhika devi Could you please mark the response helpful and accepted solution as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-22-2025 08:45 PM
Glad to help.
Please mark appropriate responses as correct.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2025 07:18 AM
I believe I also shared a working script which you marked as Helpful as well.
As per new community feature you can mark multiple responses as correct.
If my response helped please mark it correct as well so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader