How to set Script include return value to bold text

AnilM99
Tera Expert

Hi team,

I copied list collector variable values to String variable 

My question is how to set bold text in script include 

arry += 'User email: ' + gr.email + ", " ;
arry += 'Phone_number: ' + gr.phone_number+", " ;
 
is it possible to bold like bellow
User email: anil@gmail.com,  Phone Number: 9876543210
 
 
thanks
Anil!
 
 
8 REPLIES 8

Tushar
Kilo Sage
Kilo Sage

Hi @AnilM99 

 

I think this should work -

 

var arry = '';
arry += '<b>User email:</b> ' + gr.email + ", ";
arry += '<b>Phone number:</b> ' + gr.phone_number + ", ";

 

Please, don't forget to mark my answer as correct if it solves your issue or mark it as helpful if it is relevant for you!

Regards,
Tushar

AshishKM
Kilo Patron
Kilo Patron

Hi @AnilM99 , 

You can use html tag ( <b> ) in the same code where you are trying to print this values.

 

-Thanks,
AshishKM


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

Sandeep Rajput
Tera Patron
Tera Patron

Please see if the following code works.

arry += '<strong>User email:</strong> ' + gr.email + ", " ;
arry += '<strong>Phone_number: </strong>' + gr.phone_number+", " ;

AnilM99
Tera Expert

Hi Team,

Thanks for the reply 

I tried these methods but not working in Script include 

 

Thanks