How should i add space in the mailscript
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2021 04:12 AM
Hi ,
how to add the space in the following script line in the notification mail script :
template.print(' The request to add/remove access for '+current.variables.requested_for.first_name+' has been processed.');
In the above script , i want to add the space in the beginning of the sentence i.e. before "The".
Any leads is highly appreciated.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2021 04:21 AM
Hi,
You can try
template.print(' '+ 'The request to add/remove access for '+ ' '+current.variables.requested_for.first_name+' '+ 'has been processed.');
mark Correct✅/helpful if applicable, thanks!!
Aman

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2021 04:58 AM
Thank you Ankur, really appreciate the gesture!!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2021 05:53 AM
Hi Naresh,
Can you try below.
var statementis='The request to add/remove access for+ ' '+current.variables.requested_for.first_name+' '+ has been processed.';
template.print("<span style='padding-left:20px'>statementis</span>");
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2021 06:18 AM
Hi Jaspal ,
Thanks for chiming in.
I am getting the result printed as statementis instead of the message , and i dont see any spacing there

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2021 06:21 AM
I believe that is because of typo.
Try below.
var statementis='The request to add/remove access for '+ current.variables.requested_for.first_name +' has been processed.';
template.print("<span style='padding-left:20px'>statementis</span>");