Skip to main content

Hide 'Create Ticket Button' in shortcode

I'd like to utilise the customisation of the forms instead of the standard form so want to hide the create ticket button in the customer portal - is this possible struggling to find the key :)

Rasel Siddiqe

You can hide the button using a simple CSS:

.fs_create_ticket_btn
{ display: none !important; }

##This can be added via FluentSnippet or directly in the Additional CSS section of his site. However, a user can still inspect the page and modify the CSS property.##

If you want to ensure the button is completely removed from the DOM, use the following JavaScript:

document.addEventListener('DOMContentLoaded', () => {
const createTicketBtn = document.querySelector('.fs_create_ticket_btn');

if (createTicketBtn) {

createTicketBtn.remove();
}
});

Emma Wearewood

That's amazing thanks so much really loving the plugin - have a couple of customers using this