How to left align integer fields in listview?

nthumma
Giga Guru

ListView.JPG

is it possible to left align integer fields in a list view?

Thanks in advance.

1 ACCEPTED SOLUTION

Hi Srnewbie,



Please check the screenshot below.


change the Field name . i have test it on my incident list. and it is working fine.



Style sheet..png



Regards,


Harshvardhan



PS: Hit like, Helpful or Correct depending on the impact of the response


View solution in original post

23 REPLIES 23

Hi Srnewbie,



Please check the screenshot below.


change the Field name . i have test it on my incident list. and it is working fine.



Style sheet..png



Regards,


Harshvardhan



PS: Hit like, Helpful or Correct depending on the impact of the response


harshvardhansingh   thanks a lot , it worked i was missing the value , can you explain me what does javascript:1==1 will do ?


The Value field may contain JavaScript that is evaluated to determine if this style should be used for the field within a list.


Set Value to javascript:<script> - the field value is available to the script as the variable value.


If the evaluated script returns true, the style is used for the list item.



I just make it simple and used javascript: 1==1, after that it's returned true and now this field style has been applied on list.



Regards,


Harshvardhan


Is there a reason why this would no longer work? I created the field style exactly as shown in the screenshot, but integer and currency field alignments do not change.


Hi Joseph,



It will work just change the value- javascript: current."field_name">0;



You just need to change in the value condition and it will work.




Thanks,


Harshvardhan



PS: Hit like, Helpful or Correct depending on the impact of the response