View list customization

Hi,

I have created a simple custom doctype called phones. It consists of name, phone and date of birth.

What I want to do is customize the list view and add an ‘age’ column to be calculated based on the ‘date of birth’ field.

How to do that?

Attached is an image of what I want to accomplish.

You can add a field named age and check the “In List View” option in the doctype

i want to calculate the age based on date of birth
thank you

You can add a field named age and check the “In List View” option in the doctype. Then in the JS field of the module calculate the age based on the birthdate field.

Check the development documentation to see how to do it with JS

thank you
How can i edit in java script?

https://frappe.io/docs/user/en/tutorial/form-client-scripting

1

Thank you

1 Like