How do I change 'Submit a request'?

Answered


Posted Sep 30, 2022

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.


0

1

1 comment

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

 

0


Sign in to leave a comment.

Didn't find what you're looking for?

New post