STEP 1
Add the redirect link for concept sauce in a script tag.
The redirect should look like the below:
Redirect("https://survey.rose.conceptsauce.io?param_id=PRMS01G3H5QXCJ252E6FK650KEGB0Y&respondent_id=" + CurrentID() + "&link=" + link, true);
param_id:
is the unique shelf ID, concept sauce will provide you with unique param_id for each shelfrespondent_id:
is used to pass the unique ID for each respondent, must contain only numbers, no special symbolsCurrentID():
holds the unique ID in Confirmit system once the respondent enters the linklink:
this is a variable that holds the invite link for the survey, it is used to redirect the respondent back to the survey, see details below:
var link = encodeURIComponent(GetRespondentUrl('ReturnP'));
ReturnP:
this is the info page that the respondent lands once returned from the shelf, all data captured and appended into the hidden variables must be on a same page so you can recode it from the API
STEP 2
API integration:
Inside the info page that the respondents returns write the javascript code in the Javascript tab.
You can find the information about each API Call at - Virtual Shelf
Get the survey ID from ParamID, Check if Api call was successful
Get shelf summary purchases and append the data into the hidden variables
Get the shelf details and append them into the hidden variables
Get all the items the respondent have looked at
Create object for the favorite that needs to be excluded
pass the selection in the redirect link