How should i add space in the mailscript

Naresh291
Tera Contributor

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.

20 REPLIES 20

Aman Singh_
Kilo Sage

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

Thank you Ankur, really appreciate the gesture!!

Jaspal Singh
Mega Patron
Mega Patron

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>");

 

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

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>");