Welcome to the LimeSurvey Community Forum

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

Buton NEXT location

  • marektondryk
  • marektondryk's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 10 months ago #136977 by marektondryk
Buton NEXT location was created by marektondryk
Hi there :)
How can I put button NEXT between question and answer?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 10 months ago #137019 by tpartner
Replied by tpartner on topic Buton NEXT location
Yes.

(without any information about your LS version, template or a screenshot it's impossible for us to give a better answer)

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • marektondryk
  • marektondryk's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 10 months ago #137027 by marektondryk
Replied by marektondryk on topic Buton NEXT location
2.50+ Build 160517
ubuntu_orange template
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 10 months ago #137038 by tpartner
Replied by tpartner on topic Buton NEXT location
Can you provide a screenshot of where you want the button to be?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • marektondryk
  • marektondryk's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 10 months ago #137046 by marektondryk
Replied by marektondryk on topic Buton NEXT location
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 10 months ago #137084 by tpartner
Replied by tpartner on topic Buton NEXT location
If you want to affect every page in the survey, add this to the end of template.js:
Code:
$(document).ready(function(){
  $('.questionhelpcontainer:eq(0)').parent().after($('#navigator-container'));
  $('#navigator-container hr').hide();
  $('#navigator-container').css('margin-top', '0');
});

If you only want to affect a specific page, add this to the question source on that page:
Code:
<script type="text/javascript" charset="utf-8">    
  $(document).ready(function(){
    $('.questionhelpcontainer:eq(0)').parent().after($('#navigator-container'));
    $('#navigator-container hr').hide();
    $('#navigator-container').css('margin-top', '0');
  });
</script>

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • marektondryk
  • marektondryk's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 10 months ago #137124 by marektondryk
Replied by marektondryk on topic Buton NEXT location
i put the code
Code:
$(document).ready(function(){
  $('.questionhelpcontainer:eq(0)').parent().after($('#navigator-container'));
  $('#navigator-container hr').hide();
  $('#navigator-container').css('margin-top', '0');
});
 

after the:
Code:
window.alert = function(message, title) {
    if($("#bootstrap-alert-box-modal").length == 0) {
        $("body").append('<div id="bootstrap-alert-box-modal" class="modal fade">\
            <div class="modal-dialog">\
                <div class="modal-content">\
                    <div class="modal-header" style="min-height:40px;">\
                        <button type="button" class="close" data-bs-dismiss="modal" aria-hidden="true">&amp;times;</button>\
                        <h4 class="modal-title"></h4>\
                    </div>\
                    <div class="modal-body"><p></p></div>\
                    <div class="modal-footer">\
                        <a href="#" data-bs-dismiss="modal" class="btn btn-default">Close</a>\
                    </div>\
                </div>\
            </div>\

and button is still in the same place...
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 10 months ago #137125 by tpartner
Replied by tpartner on topic Buton NEXT location
It needs to go at the very end of template.js. Completely clear your cache before testing.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: marektondryk
The topic has been locked.
  • marektondryk
  • marektondryk's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 10 months ago #137126 by marektondryk
Replied by marektondryk on topic Buton NEXT location
thanks! works great!!! :)

how can I put time counter between % progress bar and question?
and how can i hide sentence under the question "select the answer..." ?
The topic has been locked.
  • elissa
  • elissa's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 10 months ago #137145 by elissa
Replied by elissa on topic Buton NEXT location
I cannot help with the counter position but to remove the tip “select the answer...” you can select “Yes” for “Hide tip” (Ukryj podpowiedź) option in advanced settings of the question.
Regards

Elzbieta Lesinska
LS voluntary Polish translator and supervisor
The following user(s) said Thank You: tpartner, marektondryk
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 10 months ago #137149 by tpartner
Replied by tpartner on topic Buton NEXT location

how can I put time counter between % progress bar and question?


Code:
<script type="text/javascript" charset="utf-8">    
  $(document).ready(function(){
    $('.group-container').before($('#timer_header'));
    $('#timer_header').css({
      'margin-top': '0',
      'margin-bottom': '0',
      'background': 'transparent'
    });
  });
</script>

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • marektondryk
  • marektondryk's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 10 months ago #137152 by marektondryk
Replied by marektondryk on topic Buton NEXT location
tpartner
where put this code?
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose