- Posts: 18
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Selecting answer also submits, using Bootstrap buttons
- paul.emmines
- Topic Author
- Offline
- New Member
Less
More
2 years 3 months ago #223921
by paul.emmines
Selecting answer also submits, using Bootstrap buttons was created by paul.emmines
Hi
My survey is using the Bootswatch theme, each question uses Bootstrap buttons, either 4 or 5 answer buttons.
I would like the selection of the answer to also submit and move to the next Q (and for the Submit button to be hidden.)
Is this possible?
My survey is using the Bootswatch theme, each question uses Bootstrap buttons, either 4 or 5 answer buttons.
I would like the selection of the answer to also submit and move to the next Q (and for the Submit button to be hidden.)
Is this possible?
Please Log in to join the conversation.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11658
- Thank you received: 2742
2 years 3 months ago #223944
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Selecting answer also submits, using Bootstrap buttons
You will need to use javacript for this. There are quite a few examples of this here in the forum, have a search.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Please Log in to join the conversation.
- paul.emmines
- Topic Author
- Offline
- New Member
Less
More
- Posts: 18
- Thank you received: 0
1 year 11 months ago #228228
by paul.emmines
Replied by paul.emmines on topic Selecting answer also submits, using Bootstrap buttons
I have searched high and low. Lots of js solutions for different Q types, but none specifically for Bootstrap Buttons?
Please Log in to join the conversation.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3593
1 year 11 months ago #228260
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 Selecting answer also submits, using Bootstrap buttons
LimeSurvey version?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Please Log in to join the conversation.
- paul.emmines
- Topic Author
- Offline
- New Member
Less
More
- Posts: 18
- Thank you received: 0
1 year 11 months ago #228279
by paul.emmines
Replied by paul.emmines on topic Selecting answer also submits, using Bootstrap buttons
Version 5.3.13, LS hosted. It's a single choice question, using Bootstrap Buttons. All help much appreciated!
Please Log in to join the conversation.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3593
1 year 11 months ago #228281
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 Selecting answer also submits, using Bootstrap buttons
This script in the source of a single-choice Bootstrap buttons question will hide the submit button and auto-advance the survey when a button is selected.
Sample survey attached:
Code:
<script type="text/javascript" data-author="Tony Partner"> $(document).on('ready pjax:scriptcomplete',function(){ // Hide the submit button $('#ls-button-submit').hide(); // Listener on the (hidden) radio inputs $('#question{QID} :radio').on('change', function(e) { $('#ls-button-submit').trigger('click'); }); }); </script>
Sample survey attached:
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Please Log in to join the conversation.