- Posts: 1
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Adding another previous and next button at the top.
- blowe46
- Topic Author
- Offline
- New Member
Less
More
13 years 2 months ago - 13 years 2 months ago #56383
by blowe46
Adding another previous and next button at the top. was created by blowe46
Hi
Is it possible to add another previous and next bottom at the top of the page? Currently, there's only a previous and next button at the bottom of the page. Is there anyway of adding an extra set at the top of the page?
The image on top is where I would like to add the extra buttons ,and the the image at the bottom is where the buttons are at the moment.
Is it possible to add another previous and next bottom at the top of the page? Currently, there's only a previous and next button at the bottom of the page. Is there anyway of adding an extra set at the top of the page?
The image on top is where I would like to add the extra buttons ,and the the image at the bottom is where the buttons are at the moment.
Last edit: 13 years 2 months ago by blowe46.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
13 years 2 months ago #56403
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 Adding another previous and next button at the top.
Sure, you can add clones of the navigation buttons with JavaScript.
Add the following to the end of template.js. It will insert a new div after the progress bar and then insert clones of the nav buttons in the new div.
This example is for the default template in 1.90 or 1.91. The placement of the new div may need to be modified for other templates.
Add the following to the end of template.js. It will insert a new div after the progress bar and then insert clones of the nav buttons in the new div.
Code:
$(document).ready(function() { // Insert a new div after the progress bar $('<div id="navigator2" />').insertAfter('#progress-wrapper'); // Style the new div $('#navigator2').css({ 'text-align':'center' }); // Insert clones of the nav buttons in the new div $('input.submit:eq(0)').clone().appendTo('#navigator2'); $('input.submit:eq(2)').clone().appendTo('#navigator2'); });
This example is for the default template in 1.90 or 1.91. The placement of the new div may need to be modified for other templates.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
The following user(s) said Thank You: blowe46
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
13 years 2 months ago #56430
by DenisChenu
Di the id on submit button don't make error in some situation ?
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 Adding another previous and next button at the top.
Hello Tony,tpartner wrote: Sure, you can add clones of the navigation buttons with JavaScript.
Di the id on submit button don't make error in some situation ?
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
13 years 2 months ago #56432
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 Adding another previous and next button at the top.
Not in my testing. Did you get an error? If so, we can change the ID.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
13 years 2 months ago #56433
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 Adding another previous and next button at the top.
If it's work it's OK (i didn't test it).
Just some bad validation
Just some bad validation
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
13 years 2 months ago #56436
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 Adding another previous and next button at the top.
Okay, you shamed me into it - here's the code to give them new IDs:
Code:
$(document).ready(function() { // Insert a new div after the progress bar $('<div id="navigator2" />').insertAfter('#progress-wrapper'); // Style the new div $('#navigator2').css({ 'text-align':'center' }); // Insert clones of the nav buttons in the new div $('input.submit:eq(0)').clone().appendTo('#navigator2'); $('input.submit:eq(2)').clone().appendTo('#navigator2'); // Give the new buttons some new IDs $('#navigator2 input.submit').each(function(i) { var oldID = $(this).attr('id'); var newID = oldID + '2'; $(this).attr('id', newID) }); });
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- Mazi
- Offline
- Official LimeSurvey Partner
13 years 2 months ago #56438
by Mazi
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
Replied by Mazi on topic Adding another previous and next button at the top.
Wouldn't it be easier to just edit the template and place a second {NAVIGATOR} placeholder at the according place in the template?
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
13 years 2 months ago #56440
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 Adding another previous and next button at the top.
That's been tried but it doesn't work unless the navigator originates in navigator.pstpl.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- Mazi
- Offline
- Official LimeSurvey Partner
13 years 2 months ago #56601
by Mazi
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
Replied by Mazi on topic Adding another previous and next button at the top.
Thanks, didn't know about it.tpartner wrote: That's been tried but it doesn't work unless the navigator originates in navigator.pstpl.
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
- badronald
- Offline
- Junior Member
Less
More
- Posts: 30
- Thank you received: 0
12 years 11 months ago #61510
by badronald
Replied by badronald on topic Adding another previous and next button at the top.
I can get the new buttons to appear but on the previous button is functional. The next button does nothing. Not error message appears either in the error console.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
12 years 11 months ago #61511
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 Adding another previous and next button at the top.
What template and browser are you using? I just tested with the default template in IE8 and FF3.6 and it works fine.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- badronald
- Offline
- Junior Member
Less
More
- Posts: 30
- Thank you received: 0
12 years 11 months ago #61515
by badronald
Replied by badronald on topic Adding another previous and next button at the top.
I am using the limespired template, which i have modified some.
I am using firefox 3
I will test it with the default template and the original limespired and see if i have better results, maybe something with this template??
Here is a link to a testable version.
www.nhs2survey.org/limesurvey2/index.php...93&newtest=Y&lang=en
I am using firefox 3
I will test it with the default template and the original limespired and see if i have better results, maybe something with this template??
Here is a link to a testable version.
www.nhs2survey.org/limesurvey2/index.php...93&newtest=Y&lang=en
The topic has been locked.