ID/Age Verification | XM Community

ID/Age Verification

  • 20 September 2019
  • 10 replies
  • 25 views

Hi all,

We are trying to integrate Veratad ID verification API within our survey and could use some help (paid support available for consultants).

Any tips or how to tutorials out there?

Thanks!

10 replies

Userlevel 7
Badge +27
Probably the best approach is to use a web service call from the survey flow. Most likely, you'll need to write your own web service script that will perform the Veartad ID verification API call.
Badge

Did you ever figure this out???

Userlevel 5
Badge +11

TomG
I'm looking into something similar and wondered how would the webservice in the survey flow loop back to the same page in the survey if the verification failed?
Thanks
Rod Pestell

Userlevel 7
Badge +27

https://community.qualtrics.com/XMcommunity/discussion/comment/46733#Comment_46733You would branch to a second verification block. You could branch to the same repeated block, but you would need JS to remove the previous answer.
Alternatively, you could use ajax and keep it all on one page, but it is a lot more complicated.

Userlevel 5
Badge +11

Hi Tom,
when you say 'same repeated block' do you mean you can skip backwards and repeat the same questions (as in the same QIDs)? I'm having to try and shoe horn this webservice into an existing survey so if that was possible that would be great.
I suspect the answer is no though so would JavaScript be a solution (or is that the AJAX solution? - sorry this is getting a little out of my depth!) and the respondent then has to click a submit button which would then (somehow) do an API call and if it returned true then it would then enable the 'next' button?
In short, can you do an API call from JavaScript?
Thanks
Rod Pestell

Userlevel 7
Badge +27

Rod_Pestell ,

when you say 'same repeated block' do you mean you can skip backwards and repeat the same questions (as in the same QIDs)?

Not skip backwards. You can insert the same block into the survey flow multiple times.
I suspect the answer is no though so would JavaScript be a solution (or is that the AJAX solution? - sorry this is getting a little out of my depth!) and the respondent then has to click a submit button which would then (somehow) do an API call and if it returned true then it would then enable the 'next' button?

In short, can you do an API call from JavaScript?

An API call from JS is ajax. You can use any JS event to trigger it, but you don't want the event to be clicking the next button. In fact, you should disable and hide the Next button until the verification is complete.

Userlevel 5
Badge +11

Hi TomG
Thanks for that - it sounds like I can then setup about eg. 5 repeat blocks and after the 5th I could then do an EOS message if they still haven't provided valid data. Messaging might be a bit limited and I've read though that some people were having problems with the 'fire and forget' option not working as expected on the webservice.
However, it does sound like it would be nicer to do this through AJAX and keeping the 'next' button disabled until validation has been met. If you've found any good examples online as to how to do this, please do let me know.
Thanks
Rod Pestell

Userlevel 7
Badge +27

https://community.qualtrics.com/XMcommunity/discussion/comment/46746#Comment_46746You only use fire and forget if the web service isn't returning anything of consequence. It doesn't apply to your situation because you need to return something to tell you if it validated.

Userlevel 5
Badge +11

Sorry, what I mean to say if you untick the 'fire and forget' option meaning (I assume) it should wait until you receive a response (or it times out). I need to assume I will always get a response but can't be sure how long it might take so I want to ensure that a response is always returned before the branch logic checks for a TRUE or FALSE response. I guess I need to try it out to see how it works.
I found a couple of threads giving some AJAX examples - I thought it would be more in depth than that (however, these scripts are reported as not working so maybe it is!):
https://community.qualtrics.com/XMcommunity/discussion/19478/select2-ajax-debugging
https://stackoverflow.com/questions/27109734/how-can-i-use-an-ajax-request-to-fire-webservice-calls-in-javascript
https://community.qualtrics.com/XMcommunity/discussion/3727/ajax-calls-not-setting-next-question-data-properly

One question - does working with API calls in surveys bring up issues about data privacy or security? For example: Are API tokens easily visible in the inspect / developer tools of the browser? Does Qualtrics ensure any data transfer is put through HTTPS automatically or is it plain text that is sent to the server in question?
Thanks
Rod Pestell

Userlevel 7
Badge +27

With ajax api calls are between client and server and with a survey flow web service, api calls are server to server. A survey flow web service is more secure because api tokens never get downloaded to the client.
With a web service or ajax call you specify the url, so you can specify https.

Leave a Reply