Need help of email script formatting

Lisa Goldman
Kilo Sage

Hello,

I have been struggling to format the following variables to a difference front and size in email script.  I hope someone with provide assistance.  Thank you

 

Here is what I have and it is completely incorrect:

var dayName = weekday[dayofWeek];
var dayName2 = '<p class=MsoNormal><span style=font-size:12.0pt;line-height:107%;font-family:"Arial",sans-serif>'"dayName2"'</span></p>';

 

var requiredDate = '<b>End: </b>' + dayName2 ;

2 ACCEPTED SOLUTIONS

Danish Bhairag2
Tera Sage
Tera Sage

Hi @Lisa Goldman ,

 

Can u try below code

 

var dayName = weekday[dayofWeek]; // Assuming you have an array called weekday and dayofWeek is the index
var dayNameFormatted = '<span style="font-size: 12.0pt; line-height: 107%; font-family: Arial, sans-serif;">' + dayName + '</span>';
var requiredDate = '<b>End:</b> ' + dayNameFormatted;

Thanks,

Danish

 

View solution in original post

@Lisa Goldman Use the following code.

var dayNameFormatted = '<span style="font-size: 12.0pt; line-height: 107%; font-family: Arial, sans-serif;"><strong>' + dayName + '</strong></span>';

View solution in original post

6 REPLIES 6

Danish Bhairag2
Tera Sage
Tera Sage

Hi @Lisa Goldman ,

 

Can u try below code

 

var dayName = weekday[dayofWeek]; // Assuming you have an array called weekday and dayofWeek is the index
var dayNameFormatted = '<span style="font-size: 12.0pt; line-height: 107%; font-family: Arial, sans-serif;">' + dayName + '</span>';
var requiredDate = '<b>End:</b> ' + dayNameFormatted;

Thanks,

Danish

 

Hi @Danish Bhairag2 

If I need to add 'bold" text in the following code.  How would I do it?

 

var dayNameFormatted = '<span style="font-size: 12.0pt; line-height: 107%; font-family: Arial, sans-serif;">' + dayName + '</span>';

  Thank you 

@Lisa Goldman Use the following code.

var dayNameFormatted = '<span style="font-size: 12.0pt; line-height: 107%; font-family: Arial, sans-serif;"><strong>' + dayName + '</strong></span>';

Hi @Lisa Goldman ,

 

You can try this way

 

var dayNameFormatted = '<b><span style="font-size: 12.0pt; line-height: 107%; font-family: Arial, sans-serif;">' + dayName + '</span></b>';

 

 

Thanks,

Danish