Submit question group from frame

More
4 years 8 months ago #88188 by tomscher
tomscher created the topic: Submit question group from frame
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 8 months ago #88311 by tpartner
tpartner replied the topic: Submit question group from frame
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 8 months ago #88315 by tomscher
tomscher replied the topic: Submit question group from frame
Great - it works just fine.

Thank you very much.

Please Log in to join the conversation.

Did you already participate in our customer survey?

Don't miss your chance for great prices.

Please click here to participate:

Start now

Start now!

Just create your account and start using Limesurvey today.

Register now