Need help with a custom button

回答済み

3 コメント

  • Ray Renteria

    Another issue I am having is how to change the following text boxed in red from "request" to "ticket"?

    This is on the new request page.

    0
  • Ifra Saqlain
    Community Moderator
    Most Engaged Community Member - 2022
    Most Engaged Community Member of The Year - 2021

    Hey Ray Renteria, answer of your query:

    Another issue I am having is how to change the following text boxed in red from "request" to "ticket"?

     

     

    Add code to your script.js file at the bottom.

    $(document).ready(function() {
      if (window.location.href.indexOf("/requests/new") > -1) {
       $('.breadcrumbs li:contains(request)').text("Submit a ticket");
        $('h1:contains(request)').text("Submit a ticket");
      }
    });

     

     

    Add jquery CDN to your document_head.hbs file.

    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>

    Screenshot for the same:

     

    Output:

     

     

     

    Thanks

    Team

    0
  • Ifra Saqlain
    Community Moderator
    Most Engaged Community Member - 2022
    Most Engaged Community Member of The Year - 2021

    Share your HC URL here to solve your first query.

    0

サインインしてコメントを残してください。

Powered by Zendesk