Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Using URL parameter when embedding experiment in survey

  • tdevalk
  • tdevalk's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 10 months ago #200186 by tdevalk
Hi all,

I'm building a limesurvey that is connected to sona for participant management. I've used panel integration to store a participants id. Part of the limesurvey is an embedded jspsych experiment, that is hosted somewhere else. This experiment saves the data to a separate data storage, so not to the limesurvey itself. I would like to add the participants id as a url parameter to the link to this embedded experiment. That way the experiment data can be stored using the same id as the corresponding limesurvey. How do I add this id, that is stored using panel integration, to the link in my embedded experiment question? See below:

iframe.setAttribute("src", "experiment_adres?ppn=" + id)

Thanks a lot!
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 10 months ago #200188 by Joffm
Hi,
with "Q1" as target question of your panel integration:
?ppn={Q1}

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose