- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-27-2020 11:18 PM
Hi Experts,
I need to add an alert on the load of a service catalog form and that alert has spaces and line breaks as below but when written like that on onLoad client script it does not accept spaces and the spaces I need to remove. How to show the line break in the alert on onLoad client script, please tell me-
Needed alert -
Things to Remember :
1.Maximum size of the file to be shared is 1 GB.If the file is bigger than 1GB,you can split the file using 7-ZIP.
2.Quota (maximum allowed storage) is 10 GB.
3.Shared file encryption : you must use a strong password to send a file.
4.WINRAR file will not work.You have to use 7-Zip only."
Code :
function onLoad() {
//Type appropriate comment here, and begin script below
alert("Things to Remember : 1.Maximum size of the file to be shared is 1 GB.If the file is bigger than 1GB,you can split the file using 7-ZIP.2.Quota (maximum allowed storage) is 10 GB.3.Shared file encryption : you must use a strong password to send a file.4.WINRAR file will not work.You have to use 7-Zip only.");
}
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-27-2020 11:23 PM
Hi,
alert(" Things to Remember :\n"+
"1.Maximum size of the file to be shared is 1 GB.If the file is bigger than 1GB,you can split the file using 7-ZIP.\n"+
"2.Quota (maximum allowed storage) is 10 GB.\n"+
"3.Shared file encryption : you must use a strong password to send a file.\n"+
"4.WINRAR file will not work.You have to use 7-Zip only.");
Thanks!
Vikas

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-27-2020 11:21 PM
use \n to change line
eg:
alert("Things to Remember : \n 1.Maximum size of the file to be shared is 1 GB.If the file is bigger than 1GB,you can split the file using 7-ZIP. \n 2.Quota (maximum allowed storage) is 10 GB. \n 3.Shared file encryption : you must use a strong password to send a file. \n 4.WINRAR file will not work.You have to use 7-Zip only.");
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-27-2020 11:23 PM
Hi,
alert(" Things to Remember :\n"+
"1.Maximum size of the file to be shared is 1 GB.If the file is bigger than 1GB,you can split the file using 7-ZIP.\n"+
"2.Quota (maximum allowed storage) is 10 GB.\n"+
"3.Shared file encryption : you must use a strong password to send a file.\n"+
"4.WINRAR file will not work.You have to use 7-Zip only.");
Thanks!
Vikas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-28-2020 12:58 AM
It worked š Ty

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-28-2020 01:04 AM
did i mention something different solution ?