User field fieldnames

I am trying to construct some basic email templates, that would reference back to the users phone number. As I understand it the path to finding these filenames would be to “customize form” but the “User” form is locked out of editing so I cannot see the fieldnames. I have tried several without success

{{ user_phone }}
{{ user.phone }}
etc etc

When you open a doctype hold down the ALT key and hover over the field
with your mouse. You will see the database field name popup. The fieldname is phone.

1 Like

Hi

This vedio may help you understand exactly what @volkswagner is explaining earlier.

For further help, you may consult with Documentation as following;

https://jinja.palletsprojects.com/en/latest/templates

Thank you for the reply. I was able to use this tip to confirm that the fieldname is phone when opening the user list.

However in construction of this email template the {{ phone }} does not work. The email delivers as typed no phone number appears. If it matters this is a Request for Quote email template. The intent being that the RFQ has some contact information for the person sending the RFQ

Screenshot 2025-04-13 1.32.39 PM

I believe any fields not in the RFQ will need to be explicitly fetched. Perhaps show the entire code and let us know what works and what doesn’t.

I think this is what you are asking for. Thank you for your help in advance

To summarize this is just a simple email template for requesting quotes from suppliers

I’m not sure how user_fullname is working.

Neither user_fullname nor phone are fields in the docytpe “Request for Quotation”.

Typically you’d have to use the API in jinja to fetch these field values based on the user that submitted the doctype or the current logged in user.