Adding a button to enter the current date or time? | XM Community
Skip to main content
Question

Adding a button to enter the current date or time?

  • June 7, 2020
  • 3 replies
  • 347 views

Newbie here. I want to create survey which would be used for data entry. Users will enter the date and time they start entering a case. I'd like to help them by adding a button they can click to fill the current time, but I don't necessarily want to automatically pre-fill the current date and time. That's partially because I don't want people to have to erase data to enter data (in those cases that the correct entry is not the current date/time) and partly because (in my limited experience) going into a survey form that has the current date piped in results in the original data being overwritten with the new date.
I used to know how to do this kind of thing when I designed Access forms. I'm assuming it can be done in Qualtrics?
TIA,
-Scott

3 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • June 8, 2020

Mcknigs - You can do this with JavaScript. I recommend using flatpickr to add a date picker to the input field. There are a number of posts about flatpickr if you search the Community.


  • Author
  • June 8, 2020

https://www.qualtrics.com/community/discussion/comment/26381#Comment_26381Thanks for the response. I've done no Javascript programming in Qualtrics or elsewhere. So far I've just been using the free account to get my feet wet. It appears that I can't use Javascript with a free account. I'll get access to the company's upgraded account eventually, and try to learn how to do this.

Thanks,
-Scott


Forum|alt.badge.img+5

Mcknigs have you found a solution for the same?
i am trying to do something similar and have no experience with java script