- Posts: 14
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Button to exit anywhere but save answers
- Jenncr93
- Topic Author
- Offline
- New Member
Less
More
3 years 7 months ago #204745
by Jenncr93
Button to exit anywhere but save answers was created by Jenncr93
Hello all,
I am setting up a LS filled with branching, piping, cascading, tailoring, etc. After having set up everything, I now want to include a button for the person to be able to exit the survey whenever they want but still save their answers (willingly) and that the survey appears as completed on my end (i.e. like a button next to "exit the survey and clear answers" on the top of the screen, or something like that).
This survey could touch upon a "sensitive" topic for some so I really want to give them all of the options so they feel comfortable. I am good with Javascript (i.e. copy-pasting it into the source not actually understanding it) so if you have any suggestions on how to do this (if it is possible) please send it my way.
THANK YOU!!!
Ps. I haven't found any other posts exactly on what I want to do, but if I missed it, please send it my way as well
I am setting up a LS filled with branching, piping, cascading, tailoring, etc. After having set up everything, I now want to include a button for the person to be able to exit the survey whenever they want but still save their answers (willingly) and that the survey appears as completed on my end (i.e. like a button next to "exit the survey and clear answers" on the top of the screen, or something like that).
This survey could touch upon a "sensitive" topic for some so I really want to give them all of the options so they feel comfortable. I am good with Javascript (i.e. copy-pasting it into the source not actually understanding it) so if you have any suggestions on how to do this (if it is possible) please send it my way.
THANK YOU!!!
Ps. I haven't found any other posts exactly on what I want to do, but if I missed it, please send it my way as well
The topic has been locked.
- DenisChenu
- Away
- LimeSurvey Community Team
Less
More
- Posts: 13652
- Thank you received: 2491
3 years 7 months ago #204765
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 Button to exit anywhere but save answers
Maybe (unsure)
1. Activate full index
2. Create a submit button with step at 1000 :
like this
Warning : validation still done, if there are a mandatory question : it can not be submitted.
1. Activate full index
2. Create a submit button with step at 1000 :
like this
Code:
<button type="submit" name="move" value="1000" class="btn btn-primary">Submit</button>
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.
- Jenncr93
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 0
3 years 7 months ago #205091
by Jenncr93
Replied by Jenncr93 on topic Button to exit anywhere but save answers
Thank you very much for your reply Denis. I took a while to respond because I don't have access to the template so I have to ask the admin to do it.
When the admin added it to the survey template, the button did not appear on the top of the survey (did not appear at all). However, when I added it to the help portion of a question, it appeared and seems to work! Any thought on how to solve this? Where exactly should the code go in the template?
Thank you so much!!
When the admin added it to the survey template, the button did not appear on the top of the survey (did not appear at all). However, when I added it to the help portion of a question, it appeared and seems to work! Any thought on how to solve this? Where exactly should the code go in the template?
Thank you so much!!
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12944
- Thank you received: 3981
3 years 7 months ago #205094
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Button to exit anywhere but save answers
Hi,
I put it in the "nav_bar.twig" right under the "clearall_links" without any further styling.
Joffm
I put it in the "nav_bar.twig" right under the "clearall_links" without any further styling.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- Jenncr93
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 0
3 years 7 months ago #205097
by Jenncr93
Replied by Jenncr93 on topic Button to exit anywhere but save answers
Great, thank you so much Joffm. That seems like it should do it. I sent it to the admin and will wait for his reply. I will let you know.
Thank you immensely!!
Thank you immensely!!
The topic has been locked.
- Jenncr93
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 0
3 years 7 months ago #205116
by Jenncr93
Replied by Jenncr93 on topic Button to exit anywhere but save answers
Hi Joffm, the admin was not sure where to put the code since it seems to be a little bit different. He sent me the template, and I do not see either where to put it. It seems the code from your template is different. I am attaching it here so you can take a look and tell me where you think it should go. Thank you so much!!
Attachments:
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11660
- Thank you received: 2742
3 years 7 months ago #205118
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Button to exit anywhere but save answers
he send you JS file as template???
Time to change the admin.
As Joffm said, you need to make the modifications in "nav_bar.twig"
Time to change the admin.
As Joffm said, you need to make the modifications in "nav_bar.twig"
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The following user(s) said Thank You: DenisChenu
The topic has been locked.
- Jenncr93
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 0
3 years 7 months ago #205159
by Jenncr93
Replied by Jenncr93 on topic Button to exit anywhere but save answers
Thank you very much for your reply Holch. The admin says those are all of the files he found... So I can't really do much else in that regard. Just a clarification, we have LimeSurvey version 2 (institutional license, that is why I have to go through an admin). The references that I found for nav_bar.twig are for version 3 (
manual.limesurvey.org/New_Template_System_in_LS3.x
)... is this maybe the problem? If so, would it still be possible to implement the code in version 2? where would it go?
Thank you so much!!
Thank you so much!!
The topic has been locked.
- DenisChenu
- Away
- LimeSurvey Community Team
Less
More
- Posts: 13652
- Thank you received: 2491
3 years 7 months ago #205161
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 Button to exit anywhere but save answers
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.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12944
- Thank you received: 3981
3 years 7 months ago - 3 years 7 months ago #205162
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Button to exit anywhere but save answers
Hi,
if version 2 means "one of the versions 2.00 - 2.06" you have to consider that these versions were "jquery-ui" based.
Here this class "btn btn-primary" is not existing.
Here you should use "navigator.pstpl".
Since version 2.50 LimeSurvey is "bootstrap"-based.
In one of the versions 2.50-2.73 you may use "startpage.pstpl".
Anyway, please provide the exact version (it is displayed in the footer of your GUI) and your used template.
Joffm
if version 2 means "one of the versions 2.00 - 2.06" you have to consider that these versions were "jquery-ui" based.
Here this class "btn btn-primary" is not existing.
Here you should use "navigator.pstpl".
Since version 2.50 LimeSurvey is "bootstrap"-based.
In one of the versions 2.50-2.73 you may use "startpage.pstpl".
Anyway, please provide the exact version (it is displayed in the footer of your GUI) and your used template.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 years 7 months ago by Joffm.
The topic has been locked.
- Jenncr93
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 0
3 years 7 months ago #205164
by Jenncr93
Replied by Jenncr93 on topic Button to exit anywhere but save answers
Hi Denis and Joffm,
Thank you so much for the follow-up. I appreciate it immensely.
The exact version is 2.63.1+170305. You can find the template zip attached with all of the files you mentioned.
Jennifer
Thank you so much for the follow-up. I appreciate it immensely.
The exact version is 2.63.1+170305. You can find the template zip attached with all of the files you mentioned.
Jennifer
Attachments:
The topic has been locked.
- DenisChenu
- Away
- LimeSurvey Community Team
Less
More
- Posts: 13652
- Thank you received: 2491
3 years 7 months ago #205165
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 Button to exit anywhere but save answers
We don't work for your company ,
Then : ask to your IT team to make the update …
Then : ask to your IT team to make the update …
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.