Welcome to the LimeSurvey Community Forum

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

Can I have a single question survey auto-submit?

  • blocka
  • blocka's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
4 years 9 months ago #185311 by blocka
I want to include a few links to my survey in an email. Each link will pass a value like ans=1, ans=2, ans=3 -- and this will be used to map that parameter to the one question in my survey.

This is for a "Rate your experience" type question, like this:

Rate your experience: 1 = Great, 2 = Ok, 3 = Needs Improvement.

That part is straight forward -- but what I want is for my participant to not have to click "Submit" on the survey page to complete their submission -- instead, I want the survey response to be marked as Complete by automatically submitting the response.

Can this be done?
The topic has been locked.
More
4 years 9 months ago #185315 by jelo
A submit via Javascript will work. The selection of the submitbutton changed in LS3.

Older thread about that topic (but not LS3):
www.limesurvey.org/forum/can-i-do-this-w...ger-save-submit-page

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 9 months ago - 4 years 9 months ago #185316 by tpartner
Try this:

Code:
<script type="text/javascript" charset="utf-8">
  $(document).on('ready pjax:scriptcomplete',function() {
 
    setTimeout(function() {
      $('#ls-button-submit').trigger('click');
    },10);
  });
</script>

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 4 years 9 months ago by tpartner.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose