Can I have a single question survey auto-submit?

More
4 months 1 week 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?

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
More
4 months 1 week 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

Please Log in or Create an account to join the conversation.

More
4 months 1 week ago - 4 months 1 week ago #185316 by tpartner
Try this:

<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.
Official LimeSurvey Partner - partnersurveys.com
Last edit: 4 months 1 week ago by tpartner.

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!