Answer
Need solution for a unique problem
I am creating a pre-screener where we are receiving ids in a unique format e.g. vbd155727_hgdsjSGdsuyegwuahs , I want to know if its possible for me to trim vbd155727_ and just send hgdsjSGdsuyegwuahs into my client link at the time of final redirection under a specific variable.
Best answer by Rich_Boits_Walker
Hey @KGParadigm, here's how I think I'd tackle this using a `split()`.
Qualtrics.SurveyEngine.addOnload(function()
{
// get data from an embedded data field names LinkID
var fullLinkID = "${e://Field/LinkID}";
// split the data based on your '_' formatted string and trim it
var myLinkID = fullLinkID.split("_")[1];
// overwrite your embedded data field with your new cleaned up string ID
Qualtrics.SurveyEngine.setEmbeddedData("LinkID",myLinkID);
});
Then on your client link URL redirect you would append `${e://Field/LinkID}`
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
