Trying to rename the order now to submit

chsandi
Kilo Contributor

Hi,

 

 I am trying to rename the order Now to SUbmit for particular catalog item in scoped application and global app (kingston)

I tried in many ways in catalog client scriprs but it hasn't worked. can anyone plz suggest on this

1. var orderHeader = document.getElementById("order_now");
orderHeader.innerHTML = "Submit";

2. var orderHeader = document.getElementById("order_now");
orderHeader.text= "Submit";

3.var orderHeader = document.getElementById("order_now").innerHTML= "Submit";

4. var orderHeader = document.getElementById("order_now").title= "Submit";

Nothing worked on above

Plzzz suggest on this...

Thanks,

Sandhya

 

 

1 ACCEPTED SOLUTION

Joel Millwood2
Kilo Guru

Hi Sandhya,

Access to the Document Object Model is not allowed in Scoped Applications and also in the Service Portal.

If you are accessing the Catalog Item via the Service Portal you can clone the SC Catalog Item widget and make the required changes to it. Alternatively if you are using the Service Catalog you will need to copy the catalog_cart_default UI Macro, disable the original and make the required changes to it.

In both cases it would be more reusable to add a custom field that you can leverage to determine on a per catalog item basis if the order now or submit button should be utilised rather than potentially adding multiple hard coded conditions.

Finally this question has been asked several times in the Community previously, the following posts may be able to assist you further:

How does one change "Order Now" button to "Submit" for a single catalog item that has no cart layout...

Rename order now button for service portal

How to change "Order now" tab to submitt

Hope this helps!

View solution in original post

4 REPLIES 4

Joel Millwood2
Kilo Guru

Hi Sandhya,

Access to the Document Object Model is not allowed in Scoped Applications and also in the Service Portal.

If you are accessing the Catalog Item via the Service Portal you can clone the SC Catalog Item widget and make the required changes to it. Alternatively if you are using the Service Catalog you will need to copy the catalog_cart_default UI Macro, disable the original and make the required changes to it.

In both cases it would be more reusable to add a custom field that you can leverage to determine on a per catalog item basis if the order now or submit button should be utilised rather than potentially adding multiple hard coded conditions.

Finally this question has been asked several times in the Community previously, the following posts may be able to assist you further:

How does one change "Order Now" button to "Submit" for a single catalog item that has no cart layout...

Rename order now button for service portal

How to change "Order now" tab to submitt

Hope this helps!

SanjivMeher
Kilo Patron
Kilo Patron

Do you want to change it for just one catalog item or all catalog items?

 

If you want to do it for all catalog items, you can navigate to System UI->Message and search for Order Now. 

Change the message from Order Now to Submit

 

find_real_file.png


Please mark this response as correct or helpful if it assisted you with your question.

Thank you

Thanks @Sanjiv Meher