thanks, Chris
We can use JS, to add a date text before or after the signature box
Chris
> 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 ");`
Chris
!
!
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:
!
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 ");
Inside the addOnload() function:
Qualtrics.SurveyEngine.addOnload(function() {
jQuery("${date://CurrentDate/SL}").insertAfter(".SignatureBox ");
});
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.