Predictive Date - Web Service maybe? | XM Community
Skip to main content
Question

Predictive Date - Web Service maybe?

  • October 28, 2019
  • 2 replies
  • 6 views

Akdashboard
Level 4 ●●●●
Forum|alt.badge.img+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

Forum|alt.badge.img+11
  • QPN Level 2 ●●
  • 35 replies
  • November 9, 2019
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.

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 6083 replies
  • November 10, 2019
You can do it with either a web service or JavaScript. Use moment.js to do JavaScript date calculations.