Service Catalog Custom PopUp Alert Message on Desktop view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2022 03:04 AM
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;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2022 03:08 AM
Hi Warick,
Does /n work ?
Ray
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2022 03:16 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2022 03:28 AM - edited ‎11-10-2022 03:29 AM
Actually it should be \n or maybe you need to escape it \\n
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2022 03:17 AM
Hi. Just add <br/> where you want to add a break