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

Hi @AnilM99 ,

 

Did you get a chance to go through my response ?

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang

swathisarang98
Giga Sage
Giga Sage

Hello @AnilM99 ,

 

Could you please try below code,

 

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

 

 

Please check and Mark Helpful and Correct if it really helps you.

Regards,

Swathi Sarang

Hugo Barros
Tera Contributor

Hi @AnilM99 , please try:

var arry = [];
var email = "User email: ";
var phoneNumber = "Phone Number: ";
var emailBold = email.bold();
var phoneNumberBold = phoneNumber.bold();

//and then
arry += emailBold + gr.email + ", " ;
arry += phoneNumberBold + gr.phone_number+", " ;

Hope it helps you!

Hugo Barros
Tera Contributor

@AnilM99, if you cant accomplish this even with the code above, could you tell us which field you are trying to populate with the bold values?