Welcome to the LimeSurvey Community Forum

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

Auto-submit on last question and do not display end page/message

  • Robert1973
  • Robert1973's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 3 months ago #192397 by Robert1973
Hi!

I have a survey with questions on the end doing calculations and representing data for the user.


People sometimes forget to hit the submit button, so nothing gets emailed.


After the last question I want to auto-submit, and not displaying the end message because the new page will wipe the content of the screen.


For auto-submit, I found this :

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


How can I prevent the end message being displayed, leaving the data on the screen in-tact?


Thanks in advance! Greetings Robert

(Limesurvey Version 2.50+ Build 160219)
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 3 months ago #192400 by Joffm

How can I prevent the end message being displayed, leaving the data on the screen in-tact?

What do you mean by that?

You don't get the default end message if you use your own end message.

Or do you like to submit the data but not leave the last page of the questionnaire?
Why?
In that case you should display your calculations and the display for the user on the end message page.

Joffm

By the way:
Your used version is the very first release of that branch 2.50-2.73. So you really should consider an update.

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: Robert1973
The topic has been locked.
  • Robert1973
  • Robert1973's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 3 months ago #192409 by Robert1973
Sorry for the confusion!

Or do you like to submit the data but not leave the last page of the questionnaire?

This is correct!

Why?

People sometimes forget to hit the submit (verzenden) button on the final page containing the calculations, which prevents the admin email being sent. We want that email.

In that case you should display your calculations and the display for the user on the end message page.

I'm afraid I'm not following the part in bold. Can you please rephrase that?

Your used version is the very first release of that branch 2.50-2.73. So you really should consider an update.

You are totally right. I'm afraid I might damage the custom stuff I build.


Thanks,
Robert
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 3 months ago #192412 by tpartner
You cannot submit the survey and leave the last question group in place.

If the survey is submitted either the end message must appear or you can redirect to another URL.

I suggest you modify the end message.

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: Robert1973
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 3 months ago #192415 by Joffm
Hi,
you wrote

to hit the submit (verzenden) button on the final page containing the calculations,


And I wrote: Display your calculations on the end message page. So there is no "final page" with your calculations inside the questionnaire.
This way he will be able to read the calculated results on the end message page.

I admit, if a respondent reads a text display page with some results he may think "Ok, everything done", but not if this is still a page with some questions.
And as you know, you may autosubmit this page.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: Robert1973
The topic has been locked.
  • Robert1973
  • Robert1973's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 3 months ago #192418 by Robert1973

You cannot submit the survey and leave the last question group in place.

Does this also mean I cannot auto-submit from the last question (group)?
The topic has been locked.
  • Robert1973
  • Robert1973's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 3 months ago #192419 by Robert1973
You both state that I could modify the end message to display the results.

The thing is that my reporting contains about 30 conditional (relevance eq's) text display questions. I coded this reporting part also in the basic admin email.

Now, I'm thinking : maybe it's possible to just copy/paste the code from the basic admin email into the source of the end message.

Quick question : does the end message accept EM stuff?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 3 months ago #192420 by tpartner
Quick answer - yes.

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: Robert1973
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 3 months ago #192421 by Joffm
And your other question:
Tony wrote
You cannot submit the survey and leave the last question group in place.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: Robert1973
The topic has been locked.
  • Robert1973
  • Robert1973's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 11 months ago #199498 by Robert1973
A bit late but both your answers helped me. Many thanks!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose