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

How to change order guide banner text "Describe Needs" ?

Sanjeev Kumar1
Kilo Sage

I want to change text "Describe Needs" to "Request Details".

If we go to UI Page "com.glideapp.servicecatalog_cat_item_guide_view"
you can update text "Describe Needs" from button.



<g2:evaluate var="not_important" expression="
var og = new Packages.com.glideapp.servicecatalog.OrderGuide(guide);
var next_message = gs.getMessage('Check Out');
if (og.isOrderToCart() $[AND] og.isTwoStep())
next_message = gs.getMessage('Add to cart');
if (!show_tabs)
next_message = gs.getMessage('Choose Options');
var previous_message = gs.getMessage('Request Details');
"/>


But I also want to change text "Describe Needs" from banner.

Describe Needs ------------> Choose Options --------------> Check Out

Please suggest me on the same.

9 REPLIES 9

Hi,



plzzz, if i want to add another new step what should i do?




Regards,


can you brief what you want?


@Frank_Wilhelm  Thanks Frank, Have a question it changes to all the order guide rite? but I want to change only for one order guide is it possible?

Manas Kandekar
Kilo Guru

If you want to change button name then use following script in onLoad() on order guide,

 

var aTags = document.getElementsByTagName("button");
var searchText = "Choose Options";

for (var i = 0; i < aTags.length; i++)
{
var text = aTags[i].textContent;
if (text.includes(searchText))
{
aTags[i].innerHTML = "Your text here";
}
}

 

---------------------------------------------------------------------------------------------------------

If you want to change progress bar text then use following script,


var aTags2 = document.getElementsByTagName("a");

for (var j = 0; j < aTags2.length; j++) {
if (aTags2[j].textContent == searchText) {
aTags2[j].innerHTML = "Your text here";
}
}

Please mark the answer correct