I need to remove "continue shopping'' on only one order guide particularly

sri vyshnavi
Tera Expert

Hi, 

I need to remove 'continue shopping' on only one particular order guide not on all order guide. 

Through maintain cart layout, it is removing continue shopping from all order guide.

Also tried using ui script suggested from other community questions.

https://community.servicenow.com/community?id=community_question&sys_id=375c43a5db9cdbc01dcaf3231f96...

nothing worked.

Is there any other way to disable 'continue shopping' on only one particular order guide.

Need it as immediate requirement. Please help

Thanks,

Sri

4 REPLIES 4

Vaishnavi Lathk
Mega Sage
Mega Sage

Hello,

You can go to "Maintain cart layouts" under service catalog and uncheck "contine shopping" option in order status,this wil be applied for all.If you want it for a specific order guide the nyou can use the below script:

You can diable contiue shopping by using below UI Script. 

and Make Global is true.

 

(function() {

 

                addAfterPageLoadedEvent(function () {

 

                          if (location.href.indexOf('com.glideapp.servicecatalog_category_view.do') != -1 ||  

 

                                  location.href.indexOf('catalog_home.do') != -1) {

 

                                    setTimeout(function(){hideButton();}, 1000);

 

                          } else if (location.href.indexOf('com.glideapp.servicecatalog_cat_item_view.do') != -1) {

 

                                    setInterval(function(){hideButton();}, 1000);

 

                          }

 

                });  

 

      })();

 

       

 

      function hideButton() {

 

                try {

 

                          gel('catalog_cart_continue_shopping').hide();

 

                } catch (e) {}

 

      }

 

find_real_file.png

 

if my answer is worthy then mark as helpful or marks as Correct

Regards,

Vaishnavi

sri vyshnavi
Tera Expert

Hi,

Tried this, it is not working.

Navigate to "Maintain Cart Layouts" module under Service Catalog. Go to "Cart Preview Screen" record and edit it.

(Uncheck the "Continue Shopping" button under buttons section).

still Not working