Authenticator/Retake link setup | XM Community
Solved

Authenticator/Retake link setup


Userlevel 2
Badge +6

Hi everyone,

I feel like this must be possible, but I’ve yet to find a working solution. I need the following behavior, using an anonymous link:

  • authenticate via Google OAuth SSO, capture email address: 
    • if a respondent is taking the survey for the first time and their email address is not in the associated contact list:
      • collect response
      • trigger workflow after submission to add info to the associated contact list
    • if a respondent is taking the survey again and the captured email address is found in the associated contact list:
      • authenticator recognizes that they’re in the associated contact list
      • end of survey element redirects to a retake link, using their previous response ID
      • update info in the associated contact list

The new user flow seems to be pretty straightforward, but I can’t seem to get the redirect → retake process to work properly for returning respondents. 

 

Any help would be appreciated!

icon

Best answer by jmborzick 9 June 2023, 15:36

View original

11 replies

Userlevel 5
Badge +12

Are you wanting it to delete their previous response, or simply capture a second response?  Do you want them to see their previous response?

 

 

 

Userlevel 6
Badge +32

@jpmorgan This can be done using retake links. In the survey, create an embedded data field “Retake Link” with the value of : https://SURVEY-URL-GOES-HERE?Q_R=${e://Field/ResponseID}&Q_R_DEL=1.

When the respondent takes the survey the first time they will be added to the associated contact list as you described and you will also add the retake link field to as a data field within the contact. 

 

When the respondent logs in a second time, it can validate against that contact list, bring in the retake link as an embedded data field, and then branch to an end of survey element if they’re in the list. The end of survey element will be customized to redirect to a url. That url should be the piped text of the retake link.

When the respondent is redirected, they will be presented with a survey prefilled with their prior responses and the original response will be deleted. 

 

If you want to keep both the new, and original responses, then delete “&Q_R_DEL=1” from the retake link url.

Userlevel 2
Badge +6

Ah right, I knew I was missing something in the explanation. I need them to see their previous response and for the old one to be deleted upon submission. 

Userlevel 5
Badge +12

Ah right, I knew I was missing something in the explanation. I need them to see their previous response and for the old one to be deleted upon submission. 

Ok, thanks for confirming you need them to see their previous submission and delete the old.  Then yes, add the suggested query string as listed by @jmborzick .  We use this same query string for an alert when someone has entered an incorrect value where matching can’t occur and their submission can’t be appropriately routed.

Userlevel 2
Badge +6

Thank you both!!!

Userlevel 2
Badge +6

Alas, I am back again because I can’t seem to get this logic right. 

The idea is that anyone can click the anonymous link and they’ll hit the authenticator. They’ll pass through the authenticator and if this is their first time completing the survey (i.e., they’re not already in the contact list with an associated responseID), they’ll see all of the survey questions. If they HAVE completed the survey before, they’ll see all of the survey questions with their previous responses filled. I believe I have the redirect to retake piece working, but now I can’t get new respondents properly triaged to the question blocks. Qualtrics support suggests that this cannot be done, but I figured I’d give it one last shot here in the forums. Attached below is my current Survey Flow. I’ve redacted a bit, but it should be noted that the embedded data from the SSO that’s feeding the contact authenticator does appear to be working without issue.  

 

Userlevel 6
Badge +32

@jpmorgan There are a few things to tweak. It looks like you’re attempting to link the sso authentication with the directory by adding an additional authenticator. Instead, follow these directions to do that. 

After your authenticators, you have an end of survey message that redirects to the retake link, but you don’t have any branch logic prior to nor are you pulling the embedded data field in. You want to add the retake link as embedded data after the authenticator and then set up branch logic. If the Retake is not empty, then branch to the end of survey to redirect. If it is empty, then continue on to the questions. 

Userlevel 2
Badge +6

@jmborzick Thank you for continuing to work through this with me, I can’t tell you how much I appreciate it. 

 

I think what’s still tripping me up is that if I remove the second Contact Authenticator, I don’t seem to be able to reference the contact list via the Google OAuth in order to grab the url stored in an embedded data field i called retake_link without associating with a panel, at which point it won’t allow for multiple completions anyway. This has now put me in what appears to be the opposite situation from the previously attached flow, wherein first-time respondents make it through without issue, but returning respondents see the “you already completed this survey” message. 

Userlevel 6
Badge +32

@jpmorgan To make it work where the SSO authenticates against the directory, you need to check this box

That will eliminate the need for the second authenticator. Regardless, in order to let your respondents authenticate again so that they can reach the retake link, you’ll need to check the box under “options” that reads, “Allow respondents to retake authenticated section.” This is a little hidden and after you click “options” you’ll need to scroll down a bit. 

Userlevel 2
Badge +6

Wow yes, I didn’t realize there were additional options in the menu! 

But then if I do associate with a panel, it won’t allow for authentication of new respondents, because their email address has not yet been added to the contact list. I think I need a way for it to check the panel in order for the branch of whether or not retake_link is populated, without stopping those who aren’t already in the panel from advancing. I’ll still need them to successfully authenticate in order to capture their email address via workflow at the end. 

Userlevel 6
Badge +32

@jpmorgan you’re still authenticating via SSO, so it should let the respondent in regardless of whether or not they currently are in the directory. When you’re associating with the panel, all you’re doing is bringing in the embedded data. 

Leave a Reply