Welcome to the LimeSurvey Community Forum

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

Exit and clean survey

  • ivanna
  • ivanna's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 1 month 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
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
9 years 1 month ago #130020 by DenisChenu
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.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
  • ivanna
  • ivanna's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 1 month 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
Attachments:
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
9 years 1 month ago - 9 years 1 month ago #130094 by DenisChenu
Replied by DenisChenu on topic Exit and clean survey
No time to check the script .

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 support - Plugins, theme and development .
I don't answer to private message.
Last edit: 9 years 1 month ago by DenisChenu.
The topic has been locked.
  • ivanna
  • ivanna's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 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
The topic has been locked.
Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose