Service Catalog Custom PopUp Alert Message on Desktop view

WazzaJC
Tera Expert

Hi Team,

I have a challenge which I believe has a simple solution, but I cannot work out the characters to put in my script, to create a simple line break. I have a Custom Popup Alert Message which triggers on the Desktop (as opposed to Service Portal). It is specifically configured for my Service Catalog item (via Catalog Client Script) when accessing from the Desktop interface.

The script I am using is pasted below, which also shows the Message body itself.

But I want to create line breaks between the wording, so that I can space out the sentences leaving a line in between, so that it is easier to read on the pop up alert.

Please help me - what is the coding to use in this specific script, to create line spacing?

Many thanks team, any help appreciated. Here (below) is the catalog client script and also attached in JPG screenshot.

 

function onSubmit() {

if (g_user.readyForSubmit) return true;

g_user.showAlertPlatform("Terms and Conditions apply to the ordering of this product. Continuing with ordering this product assumes you agree to these Terms and Conditions:");

return false;
}

8 REPLIES 8

raycallan
Giga Guru

Hi Warick,

 

Does /n work ?

 

Ray

Hi Ray,

Thanks for coming back to me, appreciated.

 

I have been trying /n but for some reason it just does not work / does not create line or space break between the wording, within this specific script

 

Regards,

Warwick

Actually it should be \n or maybe you need to escape it \\n

Community Alums
Not applicable

Hi. Just add <br/> where you want to add a break