How do I add today's date as a part of the survey question? | XM Community
Skip to main content
Solved

How do I add today's date as a part of the survey question?

  • November 3, 2020
  • 4 replies
  • 1806 views

Hello. I'm new here and hope I'm asking in the right place.
I am creating a form where the person needs to sign it before submitting. Similar to a paper form, you would sign and date it. Instead of using a textbox to ask the person to input today's date (I did this previously and lots of people type in the wrong date or year), I would like to have it as a part of the question already. I had learned on this forum that I can use piped text to add in the current date. I did this and when I went to download the survey entries to pdf (need to save separately for record), the date was for today's date (11/03/2020) when it should be yesterday's date (11/02/2020) since that's when the person filled out the form (I know from recorded date and time). I thought the piped text for today's date would be sealed once the form was submitted, but it doesn't seem to be the case. What can I do to make it work the way I'm imaging?
Here's what I'm trying to do/what I did with the piped text but it's not working right:
Capture.PNGThank you!

Best answer by PraDeepKotian_XM

Hi aw447
Here you can just set the current date in embedded variable using survey flow and piped text the same embedded data to add in question instead of directly piping in the current date.
Hope this helps!

4 replies

PraDeepKotian_XM
QPN Level 5 ●●●●●
Forum|alt.badge.img+21
  • QPN Level 5 ●●●●●
  • 230 replies
  • Answer
  • November 4, 2020

Hi aw447
Here you can just set the current date in embedded variable using survey flow and piped text the same embedded data to add in question instead of directly piping in the current date.
Hope this helps!


  • Author
  • 1 reply
  • November 4, 2020

Hi PraDeepKotian_Ugam
Thank you for responding to my question. I am still a bit lost. Can you please write out the steps on how to do what you suggested? I'm not familiar with survey flow and embedded data. Thanks!


Forum|alt.badge.img
  • 1 reply
  • June 27, 2024

Hi aw447
Here you can just set the current date in embedded variable using survey flow and piped text the same embedded data to add in question instead of directly piping in the current date.
Hope this helps!

Is it possible to re-open this forum to get better detail on how to implement this solution?

 


UXDana
Level 2 ●●
Forum|alt.badge.img+4
  • Level 2 ●●
  • 16 replies
  • November 14, 2025

I think I found what ​@PraDeepKotian_XM was referring to.

  1. In the survey flow section, choose “Embedded Data”
  2. Name the new data something like “Today Date
  3. Click “Set a Value Now”
  4. Navigate to “insert piped text” and find “Date/time” and “Current Date / Time”
  5. Choose a format
  6. Go to your question and insert the piped text “Today Date” there! 
    1. this format: ${e://Field/Today%20Date}

Try this and see if it works!