How to use image type field with hr document template.

kiran44
Tera Expert

We are capturing the user’s signature through a widget in the record producer and storing it in an image field called “u_sign_image” on the HR case table. However, when we attempt to include this signature in the HR document template using the “u_sign_image” field, it does not appear in the generated PDF. 

1 ACCEPTED SOLUTION

Hi @Sandeep Rajput 
Thank you for your response. I managed to resolve this by replacing the image type field with an HTML field. I then wrote a business rule to generate an HTML image tag, using the source from the attached signature in the sys_attachment table. This HTML value was added to the HTML field on the table.

Now, I simply select that HTML field in the HR document template, just like any other field, and the signature image is included.

View solution in original post

9 REPLIES 9

Sandeep Rajput
Tera Patron
Tera Patron

@kiran44 You can't set signature by setting an image field on the HR case template. You need to specify signature blocks within your document to capture the signature of a user for more information please refer to https://docs.servicenow.com/bundle/xanadu-employee-service-management/page/product/human-resources/t....

 

Yes, we are using signature blocks to obtain the manager’s and HR’s signatures through e-signature tasks. However, we also need to capture the user’s signature at the time they submit the request and add it into the document.”

@kiran44 If the signature block is already defined and if you are capturing the user's signature via HR Task of type E Signature then the widget responsible for capturing the e-signature automatically embeds the captured signature within the signature block within the template. For more information please refer to https://docs.servicenow.com/bundle/xanadu-employee-service-management/page/product/human-resources/c...

We currently capture the signatures of the "user’s manager" and HR through HR tasks, but not the user’s signature. As part of the requirement, we need to capture the user’s signature directly in the record producer when they fill out the request form. This signature is stored in an image-type field "u_sign_image" and needs to be added to the document when it is generated. I am adding this image-type field to the HR document template as we add any other fields of the table. Other fields data is getting populated, but the image in “u_sign_image” is not getting added in the generated document.