How to add a date 'stamp' with signature? | XM Community
Question

How to add a date 'stamp' with signature?


I am asking participants to fill out a form and sign it (using signature field). I would like a date stamp there,..it seems awkward asking them to fill in a date. After I get the pdf, I sign and date it and return it. Any advice on adding a 'date' stamp?

thanks, Chris

12 replies

Userlevel 7
Badge +22

We can use JS, to add a date text before or after the signature box

Thanks...I'm not familiar with JS...will try to figure it out, but if you can point me to a few lines of code that would be helpful.
Chris
Userlevel 7
Badge +22
> @cshamburg said:
> Thanks...I'm not familiar with JS...will try to figure it out, but if you can point me to a few lines of code that would be helpful.
> Chris
>

Paste the below code in the signature question JS

`jQuery("<span>${date://CurrentDate/SL}</span>").insertAfter(".SignatureBox ");`
Thank you so much.

Chris
Badge +3
How do I get the date to show on the response summary?
You can add a date in the Survey Flow...here's a screenshot
!
Badge +3
Thanks for your reply cshamburg. I added the element, however the date is not showing on the Response Report. I am under the impression that embedded data does show on reports. Thoughts?
It shows up at the bottom of the report for me. Are you sure you have the date as the embedded data? the "date submitted by participant" is text that I added.
Badge +3
I believe I've got everything in order. Lastly, I'm hoping for the date to show just under the Text Entry box question in the Report Summary. I've got a couple more instances of the same, later in the survey, which are likely to have different dates.
!
Userlevel 7
Badge +27
@cshamburg and @EmilyRose,

You could do it as follows:
1. Add a text entry form question after the signature question with one input field "Date:"
2. Make the default answer the current date
3. Use this JS to hide the question text and make the date readonly:
```
Qualtrics.SurveyEngine.addOnload(function() {
var q = jQuery("#"+this.questionId);
q.find("legend").hide();
q.find(".InputText").prop("readonly",true);
});
```
It will record the date as the answer to a question in your response data and look something like this:
!
Badge +1

https://community.qualtrics.com/XMcommunity/discussion/comment/22870#Comment_22870So I get this:
Qualtrics.SurveyEngine.addOnload(function()
{
/*Place your JavaScript here to run when the page loads*/

});

Qualtrics.SurveyEngine.addOnReady(function()
{
/*Place your JavaScript here to run when the page is fully displayed*/

});

Qualtrics.SurveyEngine.addOnUnload(function()
{
/*Place your JavaScript here to run when the page is unloaded*/

});

--- Where do I input?
jQuery("${date://CurrentDate/SL}").insertAfter(".SignatureBox ");

Userlevel 7
Badge +27

Inside the addOnload() function:
Qualtrics.SurveyEngine.addOnload(function() {
jQuery("${date://CurrentDate/SL}").insertAfter(".SignatureBox ");
});

Leave a Reply