Welcome to the LimeSurvey Community Forum

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

Show question index - allow jumping problem

  • DIvisionfun
  • DIvisionfun's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 5 months ago #175892 by DIvisionfun
Show question index - allow jumping problem was created by DIvisionfun
Hello,
I have a survey developed in Limesurvey Version 3.15.1 + 181017 and when I put Show question index / allow jumping as incremental or full it shows me the index but it does not work as desired, every time one tries to jump to a different group of questions what it does is to go to the next one you are in and if you were in the last group and you want to jump to another previous one, the form is sent and an email arrives with the text that I translate from spanish below, does anyone know what may be happening? or what do you recommend doing?

An error occurred while saving the survey response identified by the ID xxxxxxx
DATA TO BE INTRODUCED:
token: xxxxxxxxx
563679X50X730:
563679X50X731:
563679X50X732:
563679X50X733:
563679X50X734:
.
.
. more codes and then:



THE SQL CODE THAT HAS FAILED:
UPDATE {{survey_563679}} SET `lastpage`=9, `datestamp`='2018-10-24 16:21:13', `ipaddr`='192.168.0.1', `563679X51X743`=NULL, `563679X52X751SQ001`=NULL, `563679X52X751SQ002`=NULL, `563679X52X751SQ003`=NULL, `563679X52X751SQ004`=NULL, `563679X52X751SQ005`=NULL, `563679X52X751SQ006`=NULL, `563679X52X751SQ007`=NULL, `563679X52X751other`=NULL, `563679X52X754SQ001`=NULL, `563679X52X754SQ002`=NULL, `563679X52X754SQ003`=NULL, `563679X52X754SQ004`=NULL, `563679X52X754SQ005`=NULL, `563679X52X754SQ006`=NULL, `563679X52X754SQ007`=NULL, `563679X52X754SQ008`=NULL, `563679X52X754SQ009`=NULL, `563679X52X754SQ010`=NULL, `563679X52X754SQ011`=NULL, `563679X52X754other`=NULL, `563679X52X756SQ001`=NULL, `563679X52X756SQ002`=NULL, `563679X52X756SQ003`=NULL, `563679X52X756SQ004`=NULL, `563679X52X756SQ005`=NULL, `563679X52X756SQ006`=NULL, `563679X52X756SQ007`=NULL, `563679X52X756SQ008`=NULL, `563679X52X756SQ009`=NULL, `563679X52X756SQ010`=NULL, `563679X52X756SQ011`=NULL, `563679X52X756SQ012`=NULL, `563679X52X756SQ013`=NULL, `563679X52X756other`=NULL, `563679X52X753SQ001`=NULL, `563679X52X753SQ002`=NULL, `563679X52X753SQ003`=NULL, `563679X52X753SQ004`=NULL, `563679X52X753SQ005`=NULL, `563679X52X753SQ006`=NULL, `563679X52X753SQ007`=NULL, `563679X52X753SQ008`=NULL, `563679X52X753SQ009`=NULL, `563679X52X753SQ010`=NULL, `563679X52X753SQ011`=NULL, `563679X52X753SQ012`=NULL, `563679X52X755SQ001`=NULL, `563679X52X755SQ002`=NULL, `563679X52X755SQ003`=NULL, `563679X52X755SQ004`=NULL, `563679X52X755SQ005`=NULL, `563679X52X755SQ006`=NULL, `563679X52X755SQ007`=NULL, `563679X52X755SQ008`=NULL, `563679X52X755SQ009`=NULL, `563679X52X755SQ010`=NULL, `563679X52X755SQ011`=NULL, `563679X52X755SQ012`=NULL, `563679X52X755SQ013`=NULL, `563679X52X755SQ014`=NULL, `563679X52X755SQ015`=NULL, `563679X52X755SQ016`=NULL, `563679X52X755SQ017`=NULL, `563679X52X755SQ018`=NULL, `563679X52X755SQ019`=NULL, `563679X52X757SQ001`=NULL, `563679X52X757SQ002`=NULL, `563679X52X757SQ003`=NULL, `563679X52X757SQ004`=NULL, `563679X52X757SQ005`=NULL, `563679X52X757SQ006`=NULL, `563679X52X757SQ007`=NULL, `563679X52X757SQ008`=NULL, `563679X52X757SQ009`=NULL, `563679X52X757SQ010`=NULL, `563679X52X757SQ011`=NULL, `563679X52X757SQ012`=NULL, `563679X52X757SQ013`=NULL, `563679X52X757SQ014`=NULL, `563679X52X757SQ015`=NULL, `563679X52X757SQ016`=NULL, `563679X53X760SQ001`=NULL, `563679X53X760SQ002`=NULL, `563679X53X760SQ003`=NULL, `563679X53X760SQ004`=NULL, `563679X53X760SQ005`=NULL, `563679X53X760SQ006`=NULL, `563679X53X760SQ007`=NULL, `563679X53X760other`=NULL, `563679X53X761SQ001`=NULL, `563679X53X761SQ002`=NULL, `563679X53X761SQ003`=NULL, `563679X53X761SQ004`=NULL, `563679X53X761SQ005`=NULL, `563679X53X761SQ006`=NULL, `563679X53X761SQ007`=NULL, `563679X53X761SQ008`=NULL, `563679X53X761SQ009`=NULL, `563679X53X761SQ010`=NULL, `563679X53X761other`=NULL, `563679X54X770`=NULL, `563679X54X770other`=NULL, `563679X54X771`=NULL, `563679X54X772`=NULL, `563679X54X773`=NULL, `563679X54X774`=NULL, `563679X54X775`=NULL, `563679X54X776`=NULL, `563679X54X777SQ001`=NULL, `563679X54X777SQ002`=NULL, `563679X54X777SQ003`=NULL, `563679X54X777SQ004`=NULL, `563679X54X777other`=NULL, `563679X54X778SQ001`=NULL, `563679X54X778SQ002`=NULL, `563679X54X778SQ003`=NULL, `563679X54X778other`=NULL, `563679X54X779`=NULL, `563679X54X780SQ001`=NULL, `563679X54X780SQ002`=NULL, `563679X54X780SQ003`=NULL, `563679X54X780SQ004`=NULL, `563679X54X781`=NULL, `563679X54X781comment`=NULL, `563679X54X782`=NULL, `563679X54X782comment`=NULL, `563679X54X783`=NULL, `563679X54X783comment`=NULL, `563679X54X784`=NULL, `563679X54X784comment`=NULL, `563679X55X793`=NULL, `563679X55X796`=NULL, `563679X55X801`=NULL, `563679X57X815`=NULL, `563679X57X816`=NULL, `563679X57X818`=NULL WHERE ID=2

MENSAJE DE ERROR:
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 5 months ago #175903 by tpartner
Replied by tpartner on topic Show question index - allow jumping problem
Try turning off AJAX in the theme options.

- bugs.limesurvey.org/view.php?id=14149

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 5 months ago #175908 by DenisChenu
Replied by DenisChenu on topic Show question index - allow jumping problem

tpartner wrote: Try turning off AJAX in the theme options.

- bugs.limesurvey.org/view.php?id=14149

Seem more complex that this …

reporter have issue only with extended theme
me have issue with core template
another user just need to reset asset cache …

Maybe you can give some help here, did you understand it like me ?

1. When you click on a index link : github.com/LimeSurvey/LimeSurvey/blob/27...urvey/survey.js#L266
2. This trigger form#limesurvey submit action github.com/LimeSurvey/LimeSurvey/blob/27...urvey/survey.js#L278
3. Then ajaxfy on action goes : github.com/LimeSurvey/LimeSurvey/blob/27...ipts/ajaxify.js#L125
4. Since #onsubmitbuttoninput didn't exist github.com/LimeSurvey/LimeSurvey/blob/27...ipts/ajaxify.js#L136
5. it add the first button find github.com/LimeSurvey/LimeSurvey/blob/27...ipts/ajaxify.js#L137


Seems clean for me this system must always broke …

I don't understand why adding this #onsubmitbuttoninput … in ajaxfy, but if ajaxfy use it, it must be fixed in ajaxfy and not elsewhere :)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 5 months ago #175921 by tpartner
Replied by tpartner on topic Show question index - allow jumping problem
In my testing with the core vanilla theme in 3.15.1, the index always works correctly with AJAX disabled but never with it enabled, regardless of whether the theme was reset.

When AJAX is enabled, clicking any item in the index will advance the survey to the next group, not the target group, or if in the final group will submit the survey. It seems that the ?move parameter in the target URL is being ignored.

I also don't understand why #onsubmitbuttoninput is added. (but I haven't spent a lot of time on it)

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: DenisChenu
The topic has been locked.
  • DIvisionfun
  • DIvisionfun's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 5 months ago #175954 by DIvisionfun
Replied by DIvisionfun on topic Show question index - allow jumping problem
Thanks for the resolution, now the index works well, deactivating Ajax has some disadvantage? it stops working something relevant?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 5 months ago #175964 by tpartner
Replied by tpartner on topic Show question index - allow jumping problem
Not as far as I know. I think it was intended to speed up page load but has had many issues.

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: DenisChenu
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 5 months ago #175965 by DenisChenu
Replied by DenisChenu on topic Show question index - allow jumping problem

tpartner wrote: Not as far as I know. I think it was intended to speed up page load but has had many issues.

Yes,

And since : all HTML is produced and send to browser (like without ajax mode), and update as send partially : this force redraw, i'm unsure it was more speed …

We just remove some DNS request for 304 (not updated) part, but with a good header system all files in assets directory can be removed from call if they are already in cache.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose