I want to send a weekly survey to our student interns to enter their work time for the previous week. I originally set up an embedded data field, WeekStartDate as ${date://OtherDate/m%2Fd%2FY/-1 week}. However, if instead of filling out the survey on Monday when I send it, they fill it out on Tuesday, they get the previous Tuesday (and I want Monday). Does anyone know the variable for survey send date that I could use in the field -1 week? Thanks.
Page 1 / 1
Not Really. As a workaround, you can either pass the send date as a query string parameter or add it as an embedded data field in the contact list. This date can then be pulled by declaring the embedded data field in the survey flow.
Thanks for the suggestion @Mishraji -- I do have an embedded data field set to the previous Monday but have to manually update it each time. Was hoping I could avoid that!
I finally figured out the answer to my own question with some javascript I added to the survey to calculate last week Monday. It is not pretty but it works. (I did have to add a page break in for the variable to display correctly in my survey, thanks to another post that I found that tip)
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.