I have 3 states of workflow
- request for approval
- approved by in charge
- approved by HOD
I want to print the names of these 3 users in the signature section
I have 3 states of workflow
I want to print the names of these 3 users in the signature section
SET condition in first position in signature section
if the states of workflow equals request for approval set the frappe.session.user
and in second position the second state and so on…
sorry I don’t get this can you please explain again
I have added this condition like
{{frappe.session.user if doc.workflow_state == "Request For HOD Approval" else "A"}}
it gets an email address instead of a name and how will I get a second username?
I suggest creating three custom fields, implementing logic based on the workflow state to store the user’s name in the custom field, and then calling it in the print format.
yes, but I have to do this on multiple doctypes that’s why I don’t think it will be a good practice
Hi, You need to store the log in order for the system to track who created and approved it. All that information is stored in the version log. If you don’t have access to the version log, I recommend using a custom field to track this information. Otherwise, it won’t be possible to access it.
Hi, no it is not possible in this way if you want to do you have to create some fields from where you can get that