The CreatorCon Call for Content is officially open! Get started here.

'OrderNow' to 'Submit' on a single catalog item

alberttagle
Tera Contributor

Hi,

How do I change the ORDER NOW button text to SUBMIT, in a specific catalog item?

I don't want to change it globally, just for specific one.

I tried to look up and found the following, but both codes do not work:

1.)

On Load Catalog Client Script

var button = document.getElementById("order_now");

button.text = 'Submit';

2.)

On Load Catalog Client Script

document.getElementById("oi_order_now_button").innerHTML='Submit';

1 ACCEPTED SOLUTION

VigneshMC
Mega Sage

function onLoad() {
document.getElementById("order_now").innerHTML = "submit";
}

 

find_real_file.png

 

Above code works perfectly for me.

 

Thanks,

Vignesh

View solution in original post

15 REPLIES 15

You are trying this in service portal ?

Thanks,

Vignesh

No in my demo instance only.

 

Thanks

Pallavi

Hey alberttagle,

try this to remove Order this item

  document.getElementById("adder_header").innerHTML = "";

Thanks

Hi Vignesh

This worked for me! wonderful! is there a place / list where I can see the names like order_now and adder_header?

You find them when you go to developer tools (pressing f12 or right click and select "inspect"). Then click on mouse icon on left top header, then hover over the element for which you need to find the id. 

find_real_file.png