Skip to main content
Solved

Remove Attachment Option in Customer Portal

  • November 3, 2021
  • 9 replies
  • 784 views

Wiggy42
Apprentice
Forum|alt.badge.img

I’ve discovered that it is possible for a customer to attach an .exe file to a new ticket, and for that .exe file to be downloaded by a member of staff responding to the ticket.. 

Due to the possibility of a Zero Day being introduced to our network, we would like to either:

  1. Remove the attachment option from the portal
  2. Limit the attachment types to a small few (pdf, .doc, .jpg etc)

Has anyone got any advice on how to action the above?

Best answer by hemanth.ramya

That’s unfortunate, @Wiggy42! :(

Can you please add the following piece of code to the New ticket page under Admin > Portals > Customize portal > Layouts and pages > Portal pages and check if it helps?

<script>
jQuery("#attachment-type").remove();
</script>

 

Thanks!

View original
Did this topic help you find an answer to your question?

9 replies

hemanth.ramya
Community Manager
Forum|alt.badge.img+9
  • Community Manager
  • 626 replies
  • November 4, 2021

Hello @Wiggy42,

 

You can easily hide the Attach file option in your customer portal using the code snippet below. This can be added from under Admin > Portals > Customize portal > Stylesheet section.

.add_attachment {
  display:none;
}

For any further assistance, feel free to drop a note here and we would be happy to help! :)


Wiggy42
Apprentice
Forum|alt.badge.img
  • Author
  • Apprentice
  • 2 replies
  • November 4, 2021

Thank you for your suggestion.

I have used the code and added it to the style sheet.

The attach file link is now not displayed,  but the function to upload still exists if I hover in the correct location on the page.


hemanth.ramya
Community Manager
Forum|alt.badge.img+9
  • Community Manager
  • 626 replies
  • Answer
  • November 12, 2021

That’s unfortunate, @Wiggy42! :(

Can you please add the following piece of code to the New ticket page under Admin > Portals > Customize portal > Layouts and pages > Portal pages and check if it helps?

<script>
jQuery("#attachment-type").remove();
</script>

 

Thanks!


Wiggy42
Apprentice
Forum|alt.badge.img
  • Author
  • Apprentice
  • 2 replies
  • November 13, 2021

That has worked

Thank you very much


hemanth.ramya
Community Manager
Forum|alt.badge.img+9
  • Community Manager
  • 626 replies
  • November 24, 2021

That’s great news, @Wiggy42! :)

 

Cheers, 


JCMLI1973
Skilled Expert
Forum|alt.badge.img+4
  • Skilled Expert
  • 17 replies
  • February 16, 2023

is there any code that means I can add some text to the attachment field? it currently just says attachment but for some tickets I want to add a comment about hte type of document they need to attach. ie “Please attach your completed ISAM Association Form here. The form can be downloaded from here.”


rachelgomez1223
Community Debut

They click on Manage Attachments -> Select the attachment to be removed -> Click Remove button.

 

Regards,

Rachel Gomez


JCMLI1973
Skilled Expert
Forum|alt.badge.img+4
  • Skilled Expert
  • 17 replies
  • February 17, 2023

Im not sure you have interpreted my quesiton correctly based on your response. Please elaborate. 


Forum|alt.badge.img+3
  • Skilled Expert
  • 13 replies
  • March 29, 2023

I have a similar request to JCMLI1973. We need to customize the attachment language or add something to it indicating what should be attached. Also, is it possible to have multiple attachment fields?