How to Remove Attachment icon on Record Producer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2017 01:52 PM
if i am using " g_form.disableAttachments" I am getting this error : in portal it was saying : g_form) [DEPRECATED] Method disableAttachments is deprecated and unsupported on mobile
can any one suggest me what is the best way to do

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2017 01:58 PM
Please develop client script on your table and copy below code.
You can configure client script to run on mobile client also by updating "UI Type" on client script.
function onLoad() {
//Type appropriate comment here, and begin script below
$$('img[title="Attachments..."]')[0].up().up().down().hide();
}
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2017 01:07 AM
_
Hi Chintu
I hope this wud help
Disabling Attachments on a Table
To prevent attachments from being added to records on a specific table:
- Open a record in the table.
- Right-click in the header bar and select configure > Dictionary.
- In the list of dictionary entries, select the first record in the list (the record with no Column name entry).
- Add no_attachment to the Attributesfield, separated by commas from any existing attributes.
- See Dictionary_Attributes for more information.
Hiding the Attachment [view] Link
Users can open an attachment by clicking either the file name or the [view] link. The [view] link opens the file from within the browser, which executes JavaScript code as part of the attachment.
To hide the [view] link:
- Add the glide.ui.disable_attachment_view and glide.ui.attachment_popup properties. For instructions on adding properties to the platform, see Adding a Property.
- For the glide.ui.disable_attachment_view property, set the Type to true/false and set the Value to true.
- For the glide.ui.attachment_popup property, set the Type to true/false and set the Value to false.
- To return to the default behavior (enable the link), set the glide.ui.attachment_popup property Value to true.
Note: Users can still view attachments by clicking the file name. |

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2017 04:48 PM
Please mark as correct if issue is resolved.
Regards,
Sachin

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2017 05:23 PM
Write a onload catalog client script on the record producer with below code:
function onLoad() {
var attachment_header = document.getElementById('sc_attachment_button');
attachment_header.style.display='none';
}
Thanks,
GowriSankar.