Welcome to the LimeSurvey Community Forum

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

document.limesurvey.submit(); does not work - it just refreshes the page

  • markbao
  • markbao's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 5 months ago #128190 by markbao
Hi all,

I'm doing some custom JS stuff with LimeSurvey, and wanted to submit the form / go 'next' programmatically. I saw that LimeSurvey has
Code:
document.limesurvey.submit();
, but all it seems to do for me is refresh the page without submitting. Clicking the submit button correctly submits, but using
Code:
document.limesurvey.submit();
does not. Is this a known bug? Any ideas?

LimeSurvey 2.06+ Build 150911.

Thanks,
Mark
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 5 months ago #128192 by tpartner
Try:

Code:
$('#movenextbtn, #movesubmitbtn').trigger('click');

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose