How to add submit button in catalog item internally

Mandy11
Tera Contributor

Hi everyone !

I would like to add a Submit" button instead of "Order now" in only one of my catalogs items (internally).

Actually, I see this : 

find_real_file.png

And, I want this : 

find_real_file.png

 

Is it possible or this setting is purely for Service Portal ?

 

Thanks

 

Mandy 

 

1 ACCEPTED SOLUTION

@Mandy 

If you wish to still achieve this then do this

onLoad Client Script which applies on your catalog item

1) Ensure Isolate Script field is set to false for this client script

2) This field if not on form then from list make it false

find_real_file.png

Script:

function onLoad() {
	//Type appropriate comment here, and begin script below
	
	gel('window.cartContent').style.display = 'none';
	gel('add_to_cart_button').style.display = 'none';
	gel('sc_delivery_time_label_cell').style.display = 'none';
	gel('sc_delivery_time_cell').style.display = 'none';
	document.getElementById("order_now").innerHTML='Submit';

}

find_real_file.png

Output:

find_real_file.png

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

9 REPLIES 9

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you can use this to show submit button instead of Order Now

find_real_file.png

You can use Hide Add to Cart, Hide Quantity, Hide Delivery time checkbox and this would work for portal

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi,

Example for Portal

find_real_file.png

Output:

find_real_file.png

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Mandy11
Tera Contributor

Thank you but my request is about the view internally (in ITIL side), not in the portal.

Hi,

for native you would require DOM manipulation which is not recommended.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader