Workflow : Comment modifier le texte du formulaire Envoyer une demande du centre d’aide



Modification le 03 sept. 2024


12

2

71 commentaire

Is it also possible to change the wording “Your email address*” when the user is not logged in? 

I could not find anything regarding this in the HTML code

0


Hi

Is it possible to change the below headers and also the text in the count in the requests page (https://mycompanyname.zendesk.com/hc/en-us/requests) ?
 

I would like to replace requests with tickets so they would become My Tickets, My Organizational Tickets and 1-15 of 19 tickets

 

Thanks

 

James

0


@SUNIL WANKHEDE, I tried to change the popup text and you can change but showing ticke IDs is not possible (For me). That popup comes from backend, that's not exist in HBS files.

I have three different forms so I copied the class name and added custom JS code that worked but when I added helper to show ticket ID it did not work.

Code, I tried -


 $(document).ready(function(){
  $("div > .QN1ves1hk0MUeUx70asdhg7VPFdkXeNa.oPikK3G2Tkv7gerehm8QoqS9GeopSy").html("{{request.id}}");
   
    $("div > .QN1ves1hk0Mrgervasdhg7VPFdkXeNa.oPikK3G2Tkv7yYgqwqweoqS9GeopSy").html("CHANGE TEXT");
    $("div > .QN1ves1hk0MUeUx70asdhqeqwkXeNa.oPikK3G2Tkv7yYgW_phm8hgjghGeopSy").html("WRITE YOUR TEXT HERE");
   
});

0


Hi Ifra,

Thank you very much for quickly and expertly resolving my problem; you are truly amazing.

I have a few more questions; if you can help me with guidance, that would be very helpful.

#1 After submitting the request, a small pop-up window says request submitted. Will that be editable, and can we add the ticket ID to the same as well?

#2 It does have an option to see ticket details, but when I open it, it shows a lot of detail and fields not appropriate for requests. Can we hide them?

0


Hi Ifra,

Thank you very much for quickly and expertly resolving my problem; you are truly amazing.

I have a few more questions, if you help me with guidance would be very helpful.

#1 After submitting the request, a small pop-up window says request submitted, will that be editable and can we add the ticket ID in the same as well?

#2 It does have an option to see ticket details but when I open it, it shows a lot of detail and fields not appropriate for requests. Can we hide them?



0


Hi SUNIL WANKHEDE,

You have to change code for the mobile and desktop versions in the same file. See the given screenshots:

 

For the Desktop version - line no. 17

 

 

For the Mobile version - line no. 86

 

 

 

Replace both lines with the given code -

For the Desktop - line no. 17

 

 

 

For the mobile - line no. 86

 

 

If any issues feel free to ask :)

Thanks

 

0


Hi Team,

I am able to update the "Submit the request", text with new one, using below code.

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

I am also able to update hyperlinks at the top. By adding the below in the header.hbs

  {{#link 'new_request' class='submit-a-request'}}Submit the Survey{{/link}}


But when I check for the mobile version, I see an issue with clicking on the Submit the Survey option, or, we can say, I am even not able to click on it.



Kindly help on priority. 

0


Hey Chris Boyd

When you set the textContent property, all child nodes are removed and replaced by only one new text node. (Reference)

So the anchor tag has been removed from the anchor tag of 'Submit a request' link and that's why it's not clickable.

Simple and easy way is, go to the templates and replace the string of 'Submit a request' with 

{{#link class="submit-a-request"}} Contact Us {{/link}}

We use custom JS when there isn't a way to edit the code of the templates.

 

Hope it helps !

 

 

0


Hi!

I notice in the latest Copenhagen theme (3.10) the document.addEventListener function seems to have been replaced with window.addEventListener which means that the below method of changing the 'Submit a request' everywhere no longer works - the submit a request in the header is changed but no longer a hyperlink.  Does anyone have a workaround?

 document.addEventListener('DOMContentLoaded', function():

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

 

Thanks in advance! 

0


Vous connecter pour laisser un commentaire.