Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

bold

Avatar

Not applicable
Can I bold some of the text in a workitem.instructions such as the following?



WorkItem.instructions = "BATCH: Please create batch for client/matter:" + WorkItem.getFieldValue("clname1") + "/" + WorkItem.getFieldValue("mdesc1") + ", run conflict search in Elite, then click Submit to continue process. (" + WorkItem.getFieldValue("mnum") + ")";



I would like to bold the clname1 and mdesc1 and mnum variables. Is this possible?



Thanks
5 Replies

Avatar

Not applicable
I was not able to insert < br > so it line breaks, you can try adding < b > and < /b > from HTML tag for bold but that might not work...

Avatar

Not applicable
I have tried - this unfortunately is not possible since a style sheet is applied to the entire string.

Avatar

Not applicable
Have you tried changing the stylesheet to remove these?

text-transform: none;

text-decoration: none

Avatar

Not applicable
I got it to work by changing formatsqlcolumn.inc to not call the HTMLEncode (which will translate your HTML tags into literal values)



You can then use the standard HTML tags to bold, do separate lines.

I have to see if I can change number type to restrict to just the Instruction column.

Avatar

Not applicable
Use this so null is written out as blank.



case 22:

// default

//return HTMLEncode( fields(index).Value );

if (fields(index).Value == null)

return "";

return fields(index).Value;



However the instructions field in the email will contain those HTML tags!!



Instructions:

< B >[$ 1234]< /B >< BR >[test]

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now