Customize the message on authenticator page based on URL parameter? | XM Community
Skip to main content
Solved

Customize the message on authenticator page based on URL parameter?

  • July 22, 2020
  • 4 replies
  • 78 views

Forum|alt.badge.img+6

We've used the authenticator on numerous surveys with great success, but we'd like to customize the authenticator message based on a URL parameter. That is, if the url has something like ?dept=english it will say "please enter the code that Jane Doe, Chair of the English Department sent you. Yadda yadda. Her emails is janedoe@english.com." At that point the English faculty would enter the authenticator code.

If I was building this from scratch I'd have a table with department codes and department chairs, contact info, etc. and would look that up based on dept=english. However it's not clear that it's possible in Qualtrics, at least not without going to web services. Am I missing something obvious?

Thanks!
Chris Cosart | Senior Developer/Analyst
Center for Community College Student Engagement
Department of Educational Leadership and Policy
College of Education
The University of Texas at Austin




Best answer by ccosart

Answering my own question, but the solution I eventually used was including a URL parameter and using that (contact_id) to call the Get Contact API. Then used the retrieved data as piped text in the authenticator message.
That way, I was able to look up the meta info from one contact list and use a different contact list for the authenticator.

Seems a little contrived, but it is working. Would still be open to other solutions if any one has one, since this will come up on the vast majority of our surveys.

Thanks.

4 replies

Forum|alt.badge.img+6
  • Author
  • Level 2 ●●
  • 27 replies
  • July 22, 2020

Following up, I could basically set up a web service on our current website to retrieve the info, but it seems like I should be able to have a contact list uploaded and pull from that. But maybe not if I'm using an anonymous link?


rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • 1450 replies
  • July 22, 2020

We can write a custom code, in the header section, which will check the Q_URL parameter and accordingly update the error message.


Forum|alt.badge.img+6
  • Author
  • Level 2 ●●
  • 27 replies
  • July 22, 2020

I'm trying to avoid custom code if at all possible...


Forum|alt.badge.img+6
  • Author
  • Level 2 ●●
  • 27 replies
  • Answer
  • July 25, 2020

Answering my own question, but the solution I eventually used was including a URL parameter and using that (contact_id) to call the Get Contact API. Then used the retrieved data as piped text in the authenticator message.
That way, I was able to look up the meta info from one contact list and use a different contact list for the authenticator.

Seems a little contrived, but it is working. Would still be open to other solutions if any one has one, since this will come up on the vast majority of our surveys.

Thanks.