Forum Discussion
Format text box as italics and blue
- Jan 13, 2022
on its ControlSource:
=[Short Description] & " <font color=""#0072BC""><em>" & [txtSection] & "</em></font>"
George, I have made the change of both fields to Rich Text. The output seems unchanged. I do remember that sometimes you could get extranneous characters (# sign or some < > or others). I do not see any of those characters in the conversion.
Arnel, thank you.
Should I populate the above with my font and not sure if I need to populate em with something?
The output looks like this (no change in text color and I see the codes.
- George_HepworthJan 13, 2022Silver Contributor
Tony2021 You should have a Ribbon Tab enabled for the Rich Text controls which offers the options of font and color, etc. No need to enter the markup manually.
- Tony2021Jan 13, 2022Iron ContributorGeorge, but since I have 1 text box that concactenates (not sure if that is an accurate term) then I would think I would need to add the formatting as Arnel suggested since I want to change the color and add italics for only 1 of the fields in the concactenated text box. maybe I am not following.
- George_HepworthJan 13, 2022Silver Contributor
Here's an even wilder idea. Make at least one of the source fields Long Text in Rich Text format. Apply the required formatting in that field. When it is concatenated into this display field, maybe that will bring along that formatting....