Check out the LimeSurvey source code on GitHub!

Submit question group from frame

More
4 years 2 months ago #88188 by tomscher
Hi all,

I was wondering: I have a frame embedded in my survey in order to trace information search (the frame is necessary as far as I know - so ). In this frame there is one button and I would like to do the following: If a participant clicks this button, then s/he should get to the next questiongroup in limesurvey.

The easiest way would probably be to just submit the question group in limesurvey (parent frame). I think I should be able to do this, if I use the next button. However, I do not find a working solution. Probably it's pretty simple, but I am totally stuck. Any recommendations are welcome.

Please Log in to join the conversation.

More
4 years 2 months ago #88311 by tpartner
This is untested but try adding the following onclick attribute to your button:
onclick="javascript:parent.document.limesurvey.move.value = 'movenext'; parent.document.limesurvey.submit();"

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

More
4 years 2 months ago #88315 by tomscher
Great - it works just fine.

Thank you very much.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form