Discussions

Expand all | Collapse all

Formatting of a Formula Text Field

  • 1.  Formatting of a Formula Text Field

    Posted 01-31-2018 03:01
    I am using simple formatting in a text field using following syntax: 

    "<div style=\"font-weight: bold; background-color:Green; color:yellow; font-size: 190%; text-align: center; \">" & [Store Name]&" - "&[FY]&" ("&[Dev Code.]&")" & "</div>"

    No matter what I do by re sizing it, the label wraps.  Pl see the attached screenshot. 

    What could I do to ensure that field shows entire text in one line.  This is the only field in the section. Wonder what could I do to fix it? 
    ">https://d2r1vs3d9006ap.cloudfront.net/s3_images/1698485/RackMultipart20180131-43836-pwazta-Capture_inline.PNG?1517367655"> 


  • 2.  RE: Formatting of a Formula Text Field

    Posted 01-31-2018 03:08
    Try adding a {white-space: nowrap} style:

    "<div style='font-weight: bold; background-color:Green; color:yellow; font-size: 190%; text-align: center; white-space: nowrap;'>" & 
    [Store Name] &
    " - " &
    [FY] &
    " (" & 
    [Dev Code.] &
    ")" &
    "</div>"


  • 3.  RE: Formatting of a Formula Text Field

    Posted 01-31-2018 03:33
    Fantastic.  Works great. Many thanks. 


  • 4.  RE: Formatting of a Formula Text Field

    Posted 03-22-2018 16:30
    Can I piggyback on to this question? I've created a rich text formula to show an image and a text value next to each other. I don't want them to wrap. It seems so simple. This is what I am using...

    "<div style='white-space: nowrap;'>" & [Performance Icon]&[Performance Text] &"</div>"

    It still wraps.

    Any ideas?

    Thanks!