w. Patrick Gale

Design, photography and ramblings

Month: June 2016

Qualtrics SSO Token authentication using PHP

The following script can be used within a PHP application to provide links to Qualtrics surveys.  The links allow for ‘automatic authentication’ using the SSO token authentication element of Qualtrics (very useful feature for those who want to provide unique contact URLs to a survey without the hassle of managing ‘personal link’ distributions.

View and download the script


Qualtrics authentication problems

It is hard to say what version of Qualtrics this is a problem in, but I am going with version 1923062 since that was the best I could find in the source code.

Anyway, I found that contact list authentication seems to work on the first distribution for an anonymous link survey, but if you need to stop the survey and delete the data to test it again, then you start to have problems with contacts not being able to login once the survey is brought back online again (especially if the contact started the survey during the first distribution).

The work around seems to be making a copy of the contact list you are authenticating against if you reset the survey data and redistribute the survey and set the authentication element in the survey flow to the new contact list.  You should just be able export the contact list from Qualtrics (but make sure the ‘RecipientID’ data is not in the contact list when you import back into Qualtrics since you want new ‘RecipientID’s for the contacts).

‘Retaking a suvey’ is a problem with personal link distributions in the same way.  Once you start a distribution and then delete data and try to retake the suvey…you have problems.

– June 16, 2016

Forcing all blocks to be answered or validated under Table of Contents – Qualtrics


The Table of Contents element within the Survey Flow of your Qualtrics project is a powerful tool but there is an important thing to remember if you have a bunch of blocks with required fields, and when you want most, if not all, of those required fields and blocks answered before the survey is marked as complete:

*****MAKE SURE the ‘Add Table of Contents conclusion page’ option under the TOC options is checked if you want to enforce blocks are completed before the survey is marked as complete ******

If the ‘Add Table of Contents conclusion page’ option under the TOC options is not checked then it does not matter that you have the ‘Force respondent to finish the block’ option checked for your blocks under the Table of Contents, users can skip to the last block and only fill out that one block and end the survey (skipping the rest of the blocks all together but the survey will be marked as complete).


© 2018 w. Patrick Gale

Theme by Anders NorenUp ↑


Follow this website

Get every new post delivered right to your inbox.

Email address