Check out the LimeSurvey source code on GitHub!

Control the Navigator

More
5 years 11 months ago #57874 by pelle01
How can I control the Navigator? For instance I would like to have the next button disappear at some question numbers. I intend to replace it with a flash app that would move to the next question when done. I am looking for relevant code in the files index.php, group.php, question.php and others but find it hard to understand how it all works. I know the basics of php programming.

I use
LimeSurvey Version 1.91RC1 Build 9696
template: clear_logo

Thank you

Please Log in to join the conversation.

More
5 years 11 months ago #57880 by DenisChenu
Hello,

You can use some javascript with or without jquery. I don't know how you can activate something after a flash effect, but here is an example with :
Waiting an image loafing
Waiting 5 seconds
Move to next question.

I using this script:
<script type="text/javascript" charset="utf-8">
  $(document).ready(function() {	
    $("input.submit").hide();
    $("#imageload").load(function() {
      $('#movesubmit').val('movesubmit');
        window.setTimeout(function() {
         $('#limesurvey').submit();
        }, 5000)
     });
  });
</script>
With the image identify by id="imageload".

You can hav a look at this demo : demonstration.sondages.pro/27177

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

More
5 years 11 months ago #57891 by pelle01
Thanks, it looks great. Where should i put this script to get it to work in a specific question?

Please Log in to join the conversation.

More
5 years 11 months ago #57895 by pelle01
I got this to work, dont bother my last question, it works great now. I did put the code in the html of the specific question. Im very thankful for your help.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form