Discussions

Expand all | Collapse all

Is there a way to center or right justify text in a text field?

  • 1.  Is there a way to center or right justify text in a text field?

    Posted 06-27-2017 15:28
    Hi! Is there a way to center or right justify text in a text field? Would I use some type of text-formula? Any insight would be greatly appreciated!


  • 2.  RE: Is there a way to center or right justify text in a text field?

    Posted 06-27-2017 17:11
    Here is what I have to put a field called Last Name in a coloured box and justify it to center.
    Its a formula text field. The first part gives you whatever you want to put in the styling variable and the second part puts it together with the original field.

    var text styling = "box-sizing: border-box;  font-size: 12pt; width:150px; text-align:center; padding-top: 15px; color:white;background-color:blue; position: relative; height: 50px;"; 

    "<div style='" & $styling & "'>" & [Last Name] & "</div>


  • 3.  RE: Is there a way to center or right justify text in a text field?

    Posted 03-08-2018 15:23
    how do you type this into the formula box?


  • 4.  RE: Is there a way to center or right justify text in a text field?

    Posted 03-08-2018 15:24
    You just copy and paste that into a Rich text formula field type.