- 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-10-2025 05:27 PM
You can use Catalog UI policy to achieve this.
1. Create one hidden variable to store the email address of "Requested by"
2. Create one catalog UI policy with condition "email contains path.us"
3. In UI policy action control the visibility of the check boxes.
Hope this helps.
Let me know if you need any assistance.
Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-13-2025 11:35 PM
Hi @J Siva ,
I have tried doing the same but email contains path.us is not executing and filtering the records, i tried includes also but no change in output
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2025 08:22 PM
Could you share the screehsot of your UI policy?
I just tried the scenario in my PDI and it's working as ex[ected. PFB.
1. Catalog variables:
2. UI Policies:
1)
2)
Outputs:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2025 05:58 PM
@Radhika devi Could you please share what you have tried so far? This can be easily done via an onChange script on the requested by field.
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading) return;
// Use getReference with a proper callback function
g_form.getReference('requested_by', function(requestedBy) {
if (requestedBy && requestedBy.email) {
if (requestedBy.email.endsWith("@external.com")) {
g_form.setDisplay('checkbox_1', false);
g_form.setDisplay('checkbox_2', false);
} else {
g_form.setDisplay('checkbox_1', true);
g_form.setDisplay('checkbox_2', true);
}
} else {
// In case email is not found or user is null
g_form.setDisplay('checkbox_1', true);
g_form.setDisplay('checkbox_2', true);
}
});
}