- Posts: 6
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Exit and clean survey
- ivanna
- Topic Author
- Offline
- New Member
Less
More
8 years 2 months ago #130007
by ivanna
Exit and clean survey was created by ivanna
Hi All,
I would like to ask, if possible, remove popup confirmation "are you sure to exit .... " when button "exit and clean survey" clicked ? Please your help.
Thank you
I would like to ask, if possible, remove popup confirmation "are you sure to exit .... " when button "exit and clean survey" clicked ? Please your help.
Thank you
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13907
- Thank you received: 2546
8 years 2 months ago #130020
by DenisChenu
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.
Replied by DenisChenu on topic Exit and clean survey
I think you can update the
github.com/LimeSurvey/LimeSurvey/blob/ma...rvey_runtime.js#L105
function in template.js
Must try, maybe there are an issue , because we set it before doc ready.
Must try, maybe there are an issue , because we set it before doc ready.
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.
- ivanna
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
8 years 2 months ago #130085
by ivanna
Replied by ivanna on topic Exit and clean survey
Hi Denis,
Thank you for your help.
I have tried and replaced the template.js with new template.js as you suggest but the confirmation popup still show up after I clicked "exit and clean survey" button.
With this post, I attach my file question.pstpl. I add a piece javascript for exit automatically after 4 second, and the result, confirmation popup still show up before exit. in my expectation, the confirm popup not show but direct out survey and return to start survey
Please your advice.
Thank you,
Ivanna
Thank you for your help.
I have tried and replaced the template.js with new template.js as you suggest but the confirmation popup still show up after I clicked "exit and clean survey" button.
With this post, I attach my file question.pstpl. I add a piece javascript for exit automatically after 4 second, and the result, confirmation popup still show up before exit. in my expectation, the confirm popup not show but direct out survey and return to start survey
Please your advice.
Thank you,
Ivanna
Attachments:
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13907
- Thank you received: 2546
8 years 2 months ago - 8 years 2 months ago #130094
by DenisChenu
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.
Replied by DenisChenu on topic Exit and clean survey
No time to check the script .
But in your time out function :
OR
But in your time out function :
Code:
$(document).off('click',"[data-confirmedby]"); $("#confirm-clearall").prop("checked",true); $("#clearall").click();
OR
Code:
$("#clearall").removeAttr("data-confirmedby"); $("#confirm-clearall").prop("checked",true); $("#clearall").click();
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.
Last edit: 8 years 2 months ago by DenisChenu.
The topic has been locked.
- ivanna
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
8 years 1 month ago #130150
by ivanna
Replied by ivanna on topic Exit and clean survey
Hi Dennis,
Thank you so much for your script. I have tried your script and solved
Regards,
Ivanna
Thank you so much for your script. I have tried your script and solved
Regards,
Ivanna
The topic has been locked.