Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Allow Preview of Survey but not submitting

Allow Preview of Survey but not submitting 3 years 7 months ago #56741

  • hcdmoore
  • hcdmoore's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
Is is possible to allow a survey that is setup to be anonymous and tokened to be previewed before allowing submitting.

To help flesh this out, we are considering using limesurvey as a tool for an election. Typically the voters have had a chance to review the ballot prior to submission.
The administrator has disabled public write access.

Re: Allow Preview of Survey but not submitting 3 years 7 months ago #56742

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5325
  • Thank you received: 296
  • Karma: 249
Do you want to show a preview version to the people that doesn't record data and then lead them to the real survey after preview or do you want to show them their answers before they submit them?

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: Allow Preview of Survey but not submitting 3 years 7 months ago #56743

  • hcdmoore
  • hcdmoore's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
Thanks for the quick response!

Let me clarify. I do not mean a "review your choices" prior to submission screen. My question was muddy.

In limesurvey, there is the ability to set start and stop times and dates. Is it possible to have user access the survey - look at the questions(in this case ballot) prior to the start time, but when they are viewing it, there is not submission option (or at least some indication that it is not available yet, disabled, etc).

SO - all that - closer to your first response - "Do you want to show a preview version to the people that doesn't record data"
The administrator has disabled public write access.

Re: Allow Preview of Survey but not submitting 3 years 7 months ago #56746

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2675
  • Thank you received: 323
  • Karma: 121
Have a look here:

docs.limesurvey.org/Global+settings&high...ion%20users#Security

"Survey preview only for administration users:" should be what you are looking for.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Re: Allow Preview of Survey but not submitting 3 years 7 months ago #56750

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4191
  • Thank you received: 787
  • Karma: 359
Or you could set up and activate the survey complete with tokens for the preview period with a disabled submit button.

Then, when it's time for the election, deactivate and reactivate the survey (this will remove all responses, if any, and reset the token table) and enable the submit button.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: Allow Preview of Survey but not submitting 3 years 7 months ago #56752

  • hcdmoore
  • hcdmoore's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
Thanks for the responses.

What would be the best way to disable the submit button? (is this a setting that I have missed?)

The non-authenticated preview is a solution though it is a bit more "open" then I was hoping.

David
The administrator has disabled public write access.

Re: Allow Preview of Survey but not submitting 3 years 7 months ago #56753

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4191
  • Thank you received: 787
  • Karma: 359
You would need to do it with JavaScript. Which version of LS are you using? I'll give you a snippet.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: Allow Preview of Survey but not submitting 3 years 7 months ago #56754

  • hcdmoore
  • hcdmoore's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
Version 1.90+ Build 9642
The administrator has disabled public write access.

Re: Allow Preview of Survey but not submitting 3 years 7 months ago #56755

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4191
  • Thank you received: 787
  • Karma: 359
Set up your survey to use JavaScript and place the following script in the source of a question on the last page to disable the button:
<script type="text/javascript" charset="utf-8">
 
	$(document).ready(function(){
 
		$('.submit:eq(1)').attr('disabled', true);		
 
	})
 
</script>

Or this to hide it:
<script type="text/javascript" charset="utf-8">
 
	$(document).ready(function(){
 
		$('.submit:eq(1)').hide();		
 
	})
 
</script>

You may also consider replacing it with a button (just to give them somewhere to go) but we would need to know what you wanted to happen if that button was clicked.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
The following user(s) said Thank You: hcdmoore

Re: Allow Preview of Survey but not submitting 3 years 7 months ago #56757

  • hcdmoore
  • hcdmoore's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
Thanks Tony,

I will look into this as a solution. Need to test this with the actual user who will be building the surveys.

Your JS gives me an idea on this.

Thanks,
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.120 seconds
Donation Image