Record Producer: Questions and some viewable to all users and others viewable to specific users
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2024 11:31 AM
Hi,
I am looking to create a record producer that will have multiple options.
Several options viewable to all users. Two options only viewable to specific roles (Supervisors/managers).
Is there a way to do this?
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2024 11:42 AM
Hi @cyoshimoto You can write a Catalog Client Script like below
function onLoad() {
g_form.setMandatory("set field name here", false);
g_form.setVisible("set field name here", false);
if (g_user.hasRole('admin')) {
g_form.setMandatory("set field name here", true);
g_form.setVisible("set field name here", true);
}
}
Regards,
Sid