Welcome to the LimeSurvey Community Forum

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

Pop Up window with "i got it " checkbox

More
7 years 6 months ago #164626 by wajihabari
i am trying to display a pop up window that shows some instructions about a group of question and a checkbox/button of' I got it' . Once user clicks/checks on it , pop up window disappear and the question is displayed.

i have literally killed myself trying to do it

attaching a screen shot of the desired output
The topic has been locked.
More
7 years 6 months ago #164627 by holch
If you have "literally killed yourself" you are dead. So I assume the question is not relevant anymore?

In case you just killed yourself metaphorically, then here a few additional questions:
- This popup should appear before respondents can respond the questions, correct?
- While they have not clicked the button they should not be able to proceed, so the submit button of Limesurvey needs to be deactived?

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The following user(s) said Thank You: wajihabari
The topic has been locked.
More
7 years 6 months ago #164629 by tpartner
Place something like this in the question source:

Code:
<div class="modal fade" id="instructionsModal">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-body">
        <p>Some question instructions...</p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">I got it</button>
      </div>
    </div>
  </div>
</div>
 
<script type="text/javascript" charset="utf-8">
  $(document).on('ready pjax:scriptcomplete',function(){
    // Show the modal
    $('#instructionsModal').modal({
      backdrop: 'static',
      keyboard: false
    }).modal('show');
  });
</script>

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: wajihabari
The topic has been locked.
More
7 years 6 months ago #164632 by wajihabari
T partner I could literally hug you right now , it works like a charm
will donate happily
The topic has been locked.
More
7 years 6 months ago #164633 by wajihabari
hahaha, wish the question was irrelevant .
Have a major submission due tomorrow at work
The topic has been locked.
More
7 years 6 months ago - 7 years 6 months ago #164641 by Joffm
Hi, wajihabari,
just to add something to holch's remark about "literally".

There was an article here in the newspaper about the silly, stupid, wrong use of this word.

Really: If you are "literally" dead, you are dead.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 7 years 6 months ago by Joffm.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose