I have a table with only 2 fields
dateofbirth
--> field from database
age
--> custom field
I have JS function to calculate age based on dateofbirth
.
I need to display the result in List/View page.
Where should I put my function? Within "Server Events and Client Scripts"? Where?
Thanks.
PS: I know I can write the age function with MySQL and call it in Field-Setup-->Expression, but I prefer to do it with JS to minimize DB performance.