How do I change 'Submit a request'? | Community
Skip to main content

How do I change 'Submit a request'?

  • September 30, 2022
  • 1 reply
  • 0 views

Chris56

I cannot change the 'Submit a request' text on the Help Desk form. I figured out how to change the link text, just not the form header text.

1 reply

Ifra
  • September 30, 2022

Hi Chris Ford

 

To change the text 'Submit a request'  on everywhere (Header, breadcrumbs and anchor tag then use the below code: https://support.zendesk.com/hc/en-us/articles/4408882823834-Can-I-change-the-text-of-Submit-a-request-in-the-Help-Center-

  // translate 'submit a request' to 'contact us'
  Array.prototype.forEach.call(document.querySelectorAll('h1,.breadcrumbs > li,a'), function(a) {
        if (a.textContent.includes("Submit a request")) {
            a.textContent = 'Contact Us';
      }
  });

 

To change text one by one:

 document.querySelector('h1').textContent = 'Contact Us';
document.querySelector('.breadcrumbs > li').textContent = 'Contact Us';
document.querySelector('a.submit-a-request').textContent = 'Contact Us';

 

Thanks

Team