Enabling the Back Button between blocks with survey flow elements in between them | XM Community
Skip to main content

Hello, 

I’m looking for a way to enable the back button when there’s survey flow elements (Embedded Data) between blocks. Does anyone know of a way to achieve this?

@asi2,

It isn’t possible. The only alternative is to perform the survey flow logic using JavaScript (set embedded data, etc.).

 

 


Thanks @TomG. How would I set that up?


Thanks @TomG. How would I set that up?

Define your embedded data fields at the beginning of the survey flow, then update in JS with Qualtrics.SurveyEngine.setEmbeddedData().


Thanks @TomG . I got the following code from a similar post and wanted to know how to manipulate it bring in an answer from a previous question. 

The code I’m trying to use is below. I just want to bring in the selection from a slider question and not calculate anything. 
 

Qualtrics.SurveyEngine.addOnload(function()
{
    /*Place your JavaScript here to run when the page loads*/

});

Qualtrics.SurveyEngine.addOnReady(function()
{
    /*Place your JavaScript here to run when the page is fully displayed*/

});

Qualtrics.SurveyEngine.addOnUnload(function()
{
var x = "${gr://SC_0Asp7I5sXakHBgW/Score}"
Qualtrics.SurveyEngine.setEmbeddedData('Attribute1', "x");
});


Leave a Reply