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

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

Hi @AnilM99 , 

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

 

-Thanks,
AshishKM

Sandeep Rajput
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