- Posts: 17
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Exit and clear survey doesn't work properly
- michaelziv
- Topic Author
- Offline
- New Member
Less
More
7 years 6 months ago #140891
by michaelziv
Exit and clear survey doesn't work properly was created by michaelziv
The exit and clear button (clearall / clearallbtn) doesn't work properly in my survey. When I click the button the page presents me a question if I'm sure to delete the answers and exit the survey. When I press 'OK' the survey exits to the link I determined, but when I press 'Cancel' it still goes to the same link instead of continuing the survey.
I have no idea how to fix this, went through all the settings in limesurvey and looked at template.js and navigator.pstpl, but I couldn't find anything.
Thanks for your help.
I have no idea how to fix this, went through all the settings in limesurvey and looked at template.js and navigator.pstpl, but I couldn't find anything.
Thanks for your help.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10611
- Thank you received: 3690
7 years 6 months ago #140900
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Exit and clear survey doesn't work properly
What LimeSurvey version are you using?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- michaelziv
- Topic Author
- Offline
- New Member
Less
More
- Posts: 17
- Thank you received: 1
7 years 6 months ago #140925
by michaelziv
Replied by michaelziv on topic Exit and clear survey doesn't work properly
Version 2.50+ Build 160728
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10611
- Thank you received: 3690
7 years 6 months ago #140933
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Exit and clear survey doesn't work properly
I cannot reproduce the problem with the version 2.50 shipped templates. have you tested with a shipped template?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- michaelziv
- Topic Author
- Offline
- New Member
Less
More
- Posts: 17
- Thank you received: 1
7 years 6 months ago #140935
by michaelziv
Replied by michaelziv on topic Exit and clear survey doesn't work properly
Good advice! With the default template it works just fine. I'll compare the default template with the modified one, maybe I can locate the issue!
The topic has been locked.
- michaelziv
- Topic Author
- Offline
- New Member
Less
More
- Posts: 17
- Thank you received: 1
7 years 6 months ago #141371
by michaelziv
Replied by michaelziv on topic Exit and clear survey doesn't work properly
It worked, I found out that my predecessor comented out the navigational parts and added his own link. Thanks.
I got everything working except in Chrome :pinch:
I added
to the link and in Firefox everything works, it goes back to the link I added and the results are being discarded. In Chrome he opens the link but doesn't delete the results, when I recall the survey it goes back to the page of the survey where I left...
I got everything working except in Chrome :pinch:
I added
Code:
onclick="$(document).trigger('exitAndClear')"
The topic has been locked.