0
    
      
           
    
        
        
        
      
    
  
          
  
  
  
    
            Change a field alignment in script
 
    
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
- 1 yr agoLast active
- 4Replies
- 69Views
- 
    3
    Following
    
