How to add a date 'stamp' with signature? | XM Community
Skip to main content
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

rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • 1448 replies
  • March 5, 2020

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


  • Author
  • 4 replies
  • March 5, 2020
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

rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • 1448 replies
  • March 5, 2020
> @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 ");`

  • Author
  • 4 replies
  • March 5, 2020
Thank you so much.

Chris

Forum|alt.badge.img+3
How do I get the date to show on the response summary?

  • Author
  • 4 replies
  • March 6, 2020
You can add a date in the Survey Flow...here's a screenshot
!

Forum|alt.badge.img+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?

  • Author
  • 4 replies
  • March 6, 2020
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.

Forum|alt.badge.img+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.
!

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5862 replies
  • March 6, 2020
@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:
!

Forum|alt.badge.img+1
  • 1 reply
  • February 21, 2023

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 ");


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5862 replies
  • February 21, 2023

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


Leave a Reply