How to Hide the Export Button in the Customer Portal Ticket Tab
You can hide the Export button in the Ticket tab of the Customer Portal by using Custom JS.
To do this, go to Admin > Customer Portal > Customization, and then add the following script in the Custom JS section.
Custom JS code
let interval = setInterval(function () {
var exportbtn = document.querySelector("#export_field");
if (exportbtn) {
exportbtn.style.setProperty("display", "none", "important");
clearInterval(interval);
}
}, 100);
Add the script to the Customer Portal
To learn where to paste the Custom JS code, explore How to Configure Customer Portal Settings
Before customization
After customization
Frequently Asked Questions
1. Does hiding the Export button remove the export functionality completely?
No. This customization hides the Export button from the Ticket tab in the Customer Portal interface. It does not remove or disable the underlying functionality at the system level.
2. Where should I add the Custom JS code?
You need to add the script in the Custom JS section under Admin > Customer Portal > Customization.
3. Will this customization affect other areas of the Customer Portal?
No. This script is intended to hide only the Export button in the Ticket tab of the Customer Portal.
4. Do I need to refresh the Customer Portal after adding the script?
Yes. After saving the Custom JS code, refresh the Customer Portal to verify that the Export button is no longer displayed.