Dynamically Displaying a Future Date in Qualtrics Using JavaScript | XM Community
Skip to main content
Solved

Dynamically Displaying a Future Date in Qualtrics Using JavaScript


Forum|alt.badge.img+1

Hi everyone,

I need help with dynamically displaying a future date in the choice text. Specifically, I want to take the current date, add 30 days to it, and display the result in the format "April 6, 2025" (i.e., full month name, day, and year).

The challenge is that this date appears inside each choice text of a bipolar matrix question with two scale points (two columns with respective radio buttons). I’d like to automate this so that I don’t have to manually update the date each time I run the survey.

Does anyone know how to achieve this using JavaScript? 

Thanks in advance!

Best answer by vgayraud

Hi,

You don’t need javascript for this. Pipe in the following in your choice :

${date://OtherDate/FL/+30%20day}

 

View original

2 replies

vgayraud
QPN Level 5 ●●●●●
Forum|alt.badge.img+48
  • QPN Level 5 ●●●●●
  • 369 replies
  • Answer
  • February 7, 2025

Hi,

You don’t need javascript for this. Pipe in the following in your choice :

${date://OtherDate/FL/+30%20day}

 


Forum|alt.badge.img+1
  • Author
  • 1 reply
  • February 7, 2025
vgayraud wrote:

Hi,

You don’t need javascript for this. Pipe in the following in your choice :

${date://OtherDate/FL/+30%20day}

 

Thank you so much!! It worked


Leave a Reply