Forum Discussion

PatrickDunn's avatar
PatrickDunn
Qrew Assistant Captain
6 years ago

Formatting rich text within rich text?

Hello. My users submit (enter) content (text and images) within a rich text field. Upon viewing the content later, other users complain that the font size used by the submitter is too small. As far as I'm aware, there's no way to set default font properties for a rich text field or else impose some limits (please let me know if I'm mistaken). 

Could I instead create a formula rich text field that references the first rich text field and modifies the font? The idea would be that this formula rich text field shows in place of the entry field when in view mode. Note: the entry field must be rich text (not plain text) to enable the users to embed images, add bullets, etc. Thanks!

------------------------------
Patrick Dunn
------------------------------
  • Should be easy, how are they "entering" text into a rich text field? Can you make an example?

    ------------------------------
    Everett Patterson
    ------------------------------
    • PatrickDunn's avatar
      PatrickDunn
      Qrew Assistant Captain
      Thanks, I was able to figure this out. For the benefit of others:

      var text styling = "font-family: Arial; font-size: 12pt;";

      "<div style='" & $styling & "'>" & [enter field name here] & "</div>"


      ------------------------------
      Patrick Dunn
      ------------------------------
      • JordanMcAlister's avatar
        JordanMcAlister
        Qrew Captain

        Here is some more things you can do with it:

        "<p style='font-family: Tahoma, Verdana, Segoe, sans-serif;line-height:0'><span style='font-size:85%; font-weight:bold; background-color: #FFFF00'>" & [enter field name here] & "</span></p>"



        ------------------------------
        Jordan McAlister
        ------------------------------