Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2024 05:59 AM - edited 07-15-2024 06:00 AM
Hi,
What you can do is, Check if the user has the role, if not then remove Purchase form the dropdown.
Something like
if (!g_user.hasRole('<ROLE NAME>')) {
g_form.removeOption('<FIELD NAME>',"<CHOICE VALUE>");
}
-Anurag