- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2015 12:35 AM
Hi All,
I am unable to hide HTML text using catalog client script. I want only Order Now button in the form.
I wrote catalog client script and able to hide everything, but not Order this Item text which doesn't have Id in view source(HTML).
function onLoad()
{
sc_delivery_time_label_cell.hide();
sc_delivery_time_cell.hide();
sc_cart_item_list.hide();
price_subtotal_span.hide();
price_subtotal_label_span.hide();
price_label_span.hide();
price_span.hide();
quantity_label_span.hide();
quantity.hide();
oi_add_to_cart_button.hide();
}
Someone Plz let me know how to hide this Order this Item text in the form using catalog client script???
Solved! Go to Solution.
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2015 07:39 AM
Hi Mallikarjuna,
A couple of observations:
a) you may want to remove the .hide() lines since these could be causing errors and so then stopping the execution of the script
b) try adding the script in an onChange catalog client script. I tried it in Fuji and it works (it removes the Order This Item label)
function onChange(control, oldValue, newValue, isLoading) {
gel('qty').firstElementChild.childNodes[0].style.display = 'none';
//Type appropriate comment here, and begin script below
}
Thanks,
Berny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2015 03:29 AM
Hi
Even I am implementing the same. I want to hide the 'Order this item' label. I am able to do with the scriptgel('qty').firstElementChild.childNodes[0].style.display = 'none';.
But it ll be for a particular catalog item if i write a onLoad script on catalog item. How to make it work for all the catalog item ??
Please help on this.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2015 05:57 AM
Hi Priya,
If you are using Fuji version, you can go to Service catalog-- Catalog Definitions--Maintain Cart Layouts and you can define the visibility as per your request. This is global, please be sure before making any changes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2015 02:20 AM
below link will be helpful
http://wiki.servicenow.com/index.php?title=Configuring_Cart_Layouts#gsc.tab=0