Predictive Date - Web Service maybe? | XM Community
Question

Predictive Date - Web Service maybe?

  • 28 October 2019
  • 2 replies
  • 1 view

Userlevel 7
Badge +6
Hi community geniuses!

I have made a "survey" that functions as a registration form. Depending on how they answer a question, they are registering for a meeting on either the second Tuesday of a month or the fourth Tuesday of a month. I'd love to a make an Outlook invite for the survey taker, but I'll need to know what the date of a given 2nd/4th Tuesday is based on the year and month.

Has anyone ever done anything like this? I feel like this might be doable with a Web Service call, but I am not sure.

2 replies

Userlevel 3
Badge +11
Have you tried with the "Add Javascript" option? Maybe you could put a small script there that calculates on the spot the date of the 2nd or 4th Tuesday using some Javascript's date library.
Userlevel 7
Badge +27
You can do it with either a web service or JavaScript. Use moment.js to do JavaScript date calculations.

Leave a Reply