To add client condition in attachment action by using javascript:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2025 10:30 AM
I want to fetch attachment sys ids in a filter where action model field is used which attachmentSysId.
I have added condition like this but it is not showing attachment action on the form even if the attachments are getting added. I have tried the same code in attachment table by using sys is one of it is showing those sys_ids. Could you suggest something to add condition
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2025 11:53 AM - edited 08-19-2025 11:54 AM
I am not familiar with that script include, but you do have a typo -- you are missing the t in checkAttachment1() after global.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2025 11:56 AM
Yes I corrected it.but the same behaviour
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2025 12:00 PM
Can you explain what you are trying to accomplish? I'm not following your original explanation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2025 12:03 PM
I have a checkbox on attachment table.When it is true I need to show that attachment action and if it is false ,I need to hidd it.So I thought if adding condition where it will check if attachmentsysid is one of sys ids which I am sending from script include in the format of an array