Need to add date stamp to Document Template
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2023 11:39 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2023 10:23 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 06:28 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 07:07 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 07:27 AM
Hello @Rylie Markle
If you find the response helpful, pls mark it as Accept Solution.
Regards,
Samaksh