Can I save a user’s job position or title and use it in my document templates?

Tabla de contenidos

A user’s job position can be stored in their user profile.

Athento_-_Curso_Athento.png

 

Use the data in a document field

For example, if you wanted to automatically obtain in a field the job position of the author of a document, you can do so using the following dynamic expression:

fil.author.job_title

If you want to extract the position of another user who is not the author of the document, you must pass the User object you want and, in the same way as before, access their job_title: <user>.job_title 

The position will be filled in the field when you run the data extraction.

 

Print the position in templates

To use this value in a template, you can either store it in a field and put its label like that of any other field, or put the following tag inside the template:

 

{{ fil.author.job_title }}