Ui Macro does not working on Form popup screen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2024 06:54 PM - edited 07-18-2024 06:58 PM
Hi,
I have added logic to the existing “attachment_entry” to hide the target element. (Using Ui Macro)
This hides the “Choose File” button that appears in the “manage attachments” popup.
It is as follows
◆List
◆Form
If you open the popup from a list, the button will be hidden.
However, if you open the popup from a form, the button is not hidden.
This is unexpected.
Why is it that when I open a popup from a form, the target button is not hidden?
Regards,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2024 07:53 PM
Hey @TATSUYAHIGUCHI ,
This is not the right approach. What you need to do instead is to disable attachments at the table level
Check this SN page for the steps:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2024 09:21 PM - edited 07-18-2024 09:45 PM
hi, AnirudhKumar!
Sorry, I have a problem.
I want to prohibit file attachments from the List side only.
This is what I would like to implement.
I would like to allow file attachments from the form side.
Since it was difficult to achieve, it is implemented as described in the topic using UI Macro.
On top of that,
I would like to know why the list screen and the form screen do not behave the same due to the Ui macro implementation.
Thanks,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2024 04:43 AM
Hmm... I see what you mean.
I assume you have a different group of users who should be given access to read incident records(list), but not attach files from the list ?
If that is not the case, I'm afraid the attachment behavior is going to be same in both same in list. Either disable in both places, or allow in both places.