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

  • wajihabari
  • wajihabari's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 2 months ago #164626 by wajihabari
Pop Up window with "i got it " checkbox was created 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
Attachments:
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 2 months ago #164627 by holch
Replied by holch on topic Pop Up window with "i got it " checkbox
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?

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: wajihabari
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 2 months ago #164629 by tpartner
Replied by tpartner on topic Pop Up window with "i got it " checkbox
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.
  • wajihabari
  • wajihabari's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 2 months ago #164632 by wajihabari
Replied by wajihabari on topic Pop Up window with "i got it " checkbox
T partner I could literally hug you right now , it works like a charm
will donate happily
The topic has been locked.
  • wajihabari
  • wajihabari's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 2 months ago #164633 by wajihabari
Replied by wajihabari on topic Pop Up window with "i got it " checkbox
hahaha, wish the question was irrelevant .
Have a major submission due tomorrow at work
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 2 months ago - 6 years 2 months ago #164641 by Joffm
Replied by Joffm on topic Pop Up window with "i got it " checkbox
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: 6 years 2 months ago by Joffm.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose