Create a Catalog Client Script to Control the Display of Choices Based on Role
- On the Brother Network-Ready Printer Toner Catalog Item form, select New on the Catalog Client Scripts Related List
- Configure the record
Name: Toner Choices by Role Type: onLoad
- Save the record, remain on the form
- Examine and write the script:
function onLoad(){ if(!g_user.hasRoleExactly('itil_admin')){ g_form.removeOption('pack_type', 'cym3'); g_form.removeOption('pack_type', 'cym6'); } }
- Select Update