Need to add date stamp to Document Template

Rylie Markle
Tera Contributor

Hello, 

I am looking to add a date stamp to a PDF Document template of the date/time the employee signature was completed. What is the best way to go about this? I have a field for Signature Date- can I use an advanced script? Any advice is appreciated. 

Thanks! 

 

RylieMarkle_0-1698691172120.png

 

5 REPLIES 5

Samaksh Wani
Giga Sage
Giga Sage

Hello @Rylie Markle 

 

(function runTemplateScript(target /*GlideRecord for target task*/ ) {
	//Add your code here to return the dynamic content for template	
	var cd = new GlideDate();
	
	return (cd.getByFormat('MMMM dd, YYYY'));
})(target); 

 

Plz mark my solution as Accept, If you find it helpful.

 

Regards,

Samaksh

Hi @Samaksh Wani -

Thank you, this helped! Will this always just populate the date that the task was created? Or will it be the date the document was signed?

Hello @Rylie Markle 

 

It will work on the date of document signed..

 

Plz mark my solution as Accept, If you find it helpful.

 

Regards,

Samaksh

Hello @Rylie Markle 

 

If you find the response helpful, pls mark it as Accept Solution.

 

Regards,

Samaksh