Skip to main content

Hello Trailblazers,

 

 In Administration>Preferences/Files I have only allowed shp file type. This works well in discussion forums because it is a useless file type that attempting to attach file types is pointless. However, using the Chatter functionality in case records users can attach any file type. The file restriction does not seem to apply.

Is there a CSS hack to hide the paper clip? We don't folks using Chatter but don't want to allow attachments.

Thanks Trailblazers

#CSS Hacks #Experience Cloud #Chatter

18 respostas
  1. Tom Bassett (Vera Solutions) Forum Ambassador
    15 de nov. de 2023, 14:48

    If you want to hide the Paperclip from the Contact Support Form then within the component properties turn off the option to attach a file under Authenticated Users

     

    For the Ask Question Modal this CSS hides the paperclip in my developer org;

    .cuf-publisherAttachmentBar.desktop.fadeInList.forceChatterPublisherAttachments {

    display: none;

    }

    With the help of a additional override for the comment functionality this seems to take care of all of your use cases;

    button.slds-button.slds-button--neutral.uiButton.forceChatterAttachFileButton {

    display: none;

    }