Hello everyone,
I would like to count the unique # of modal-button clicks. Successful to build html/CSS, and added embedded data (i.e., modal41_clicks, modal42_clicks). But the unique number of button clicks are not saved in the Qualtrics.
HEre is my html:
Here is my JS:
Qualtrics.SurveyEngine.addOnReady(function()
{
var myModal41Click=0, myModal42Click=0;
jQuery("#myModal41").click(function(){
Qualtrics.SurveyEngine.setEmbeddedData('modal41_clicks', ++myModal41Click);
jQuery("#myModal41").toggle();
});
jQuery("#myModal42").click(function(){
Qualtrics.SurveyEngine.setEmbeddedData('modal42_clicks', ++myModal42Click);
jQuery("#myModal42").toggle();
});
Any feedback would be appreciated.