0
Change a field alignment in script
![](https://s3-us-west-2.amazonaws.com/media.forumbee.com/i/51bffee8-80d4-4b4d-b53b-81b8ed581b1b/h/547.png)
Hello friends,
I can't figure this thing out. Is it possible to change the alignment of a formula field to right aligned inside a script without using HTML, CSS and the Style window.
I have a formula field calculating age based on another field that is Date type. I am using the styled() function to change the background of this field to "light grey" color to make it look like disabled. Since styled() returns a styled object, the alignment changes to "left aligned" and since age() returns a number, so I want the formula field to have the result "right aligned".
let age := 0;
if 'Date of Birth' != null then
age := age('Date of Birth')
end;
styled(text(age), "#F7F8FC")
4 replies
-
There is a style section for formula fields and you can set alignment.
Is that what you want?
Content aside
- Status Answered
- 5 mths agoLast active
- 4Replies
- 56Views
-
3
Following