Setting embedded data? | XM Community
Skip to main content

Setting embedded data?

  • September 16, 2022
  • 2 replies
  • 47 views

Forum|alt.badge.img+3

Hi,
I am using Q_totalduration currently as a time limit, but am merging another survey with another that has a different time limit. Thus, I want to reset the embedded data to equal 0 for the survey/the new block. Does anyone have code that does this/how to set embedded data?

2 replies

bgooldfed
Level 4 ●●●●
Forum|alt.badge.img+25
  • Level 4 ●●●●
  • 179 replies
  • September 19, 2022

Hi rma703,
Yes indeed, it's very easy :)
Qualtrics.SurveyEngine.setEmbeddedData('myField', 'value');
Good luck!


SaurabhPujare_Ugam
QPN Level 5 ●●●●●
Forum|alt.badge.img+18
  • QPN Level 5 ●●●●●
  • 145 replies
  • September 19, 2022

Unfortunately, that is not possible because Q_TotalDuration being system variable, Qualtrics does not allow setting the value for the system variables as the values for the same are updated dynamically.
Hope this answers your question.