- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2024 06:56 AM
Is there a way to hide the attachments icon when a ritm is not assigned to the current user or the request has not been approved? And when the request is approved or assigned to the current user, the attachments icon should be visible? My current client script is not working correctly
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2024 07:03 AM - edited 06-20-2024 07:05 AM
Hi,
Cat Item is a reference field so use this for the cat item if condition
if(g_form.getValue('approval') !='approved' g_form.getDisplayBox('cat_item').value == 'Purchase Request')
g_form.disableAttachments();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2024 07:03 AM - edited 06-20-2024 07:05 AM
Hi,
Cat Item is a reference field so use this for the cat item if condition
if(g_form.getValue('approval') !='approved' g_form.getDisplayBox('cat_item').value == 'Purchase Request')
g_form.disableAttachments();