- Posts: 36
- Thank you received: 0
- Forum
- English support forums
- Can I do this with LimeSurvey?
- not counting hidden questions in the progress bar
not counting hidden questions in the progress bar
For instance, if I have a survey with 20 questions and 5 hidden question can I let the progress bar indicate steps of 5% instead of 4%?
Please Log in or Create an account to join the conversation.
- DenisChenu
-
- Offline
- LimeSurvey Community Team
-
- Posts: 8878
- Karma: 400
- Thank you received: 1469
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).
An error happen ? Before make a new topic : remind the Debug mode .
Please Log in or Create an account to join the conversation.
DenisChenu wrote: LimeSurvey version ?
Because seems to be a bug (hidden, not with conditions).
Denis
Version 2.50+ Build 160506
Please Log in or Create an account to join the conversation.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Please Log in or Create an account to join the conversation.
Sounds worth a feature request for Limesurvey 3, what do you think?
Any hints were the related code is located?

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"
Please Log in or Create an account to join the conversation.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Please Log in or Create an account to join the conversation.
- DenisChenu
-
- Offline
- LimeSurvey Community Team
-
- Posts: 8878
- Karma: 400
- Thank you received: 1469
"hidden" group exist but rarely.
Think it's a bug.
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).
An error happen ? Before make a new topic : remind the Debug mode .
Please Log in or Create an account to join the conversation.
a) Questions actually shown
b) Question position in the survey
bugs.limesurvey.org/view.php?id=9677
I sometimes set the progressbar with values in hidden questions. When bridging three surveys (first and last limesurvey) I need to set start and end values to ensure a 0 to 100% over all three surveys.
Please Log in or Create an account to join the conversation.
I agree that questions that are always hidden by advanced question settings should not be counted into the calculation.
Now to exclude hidden questions because of conditions can generate problems, because in an extreme situation, you have 2 questions that are always there, so if you are in the first question progress bar shows 50%. You give the "wrong" answer and suddenly another 10 questions appear. I feel this is worse than showing 10% and suddenly you are finished quicker than you tought. At least for the user. I guess the progress bar will never be 100% ideal.
I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds
Please Log in or Create an account to join the conversation.
- DenisChenu
-
- Offline
- LimeSurvey Community Team
-
- Posts: 8878
- Karma: 400
- Thank you received: 1469
Hi jelo,jelo wrote: ....
I sometimes set the progressbar with values in hidden questions. When bridging three surveys (first and last limesurvey) I need to set start and end values to ensure a 0 to 100% over all three surveys.
In fact : progressbar is "just" a javascript plugin showing something. You can "easily" hack it to show another settings.
Quick xample for a group by group system, in "group description"
<p class="ownprogress hide">You make half of the survey</p><div id="ownprogress"></div>
<script>
$(document).ready(function() {
$("#ownprogress").progressbar({
value: 50
});
;});
</script>
Denis
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).
An error happen ? Before make a new topic : remind the Debug mode .
Please Log in or Create an account to join the conversation.
I provided a solution in the feature request ticket for my bridging needs. But as I see you opposed my feature request last yearDenisChenu wrote: In fact : progressbar is "just" a javascript plugin showing something. You can "easily" hack it to show another settings.

To base progress bar calculations on a different metric (e.g. displayed questions) that information needs to be provided somewhere.
I would find it nice, when you could change different display metrics, location (top or bottom) and start/end values via a little option section. To make it even more easier for users a header/footer for every page (aka group) is accessible, where a progress-bar placeholder can be kicked out and a static value can be filled in. Personally I "only" need a variable, which provides the questions shown for the current user to update the workarounds I use.
Please Log in or Create an account to join the conversation.
- DenisChenu
-
- Offline
- LimeSurvey Community Team
-
- Posts: 8878
- Karma: 400
- Thank you received: 1469
I need to make a pull request for "templateReplace" event . For example : any plugin can do something with {PROGRESSBARR} for example.
Denis
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).
An error happen ? Before make a new topic : remind the Debug mode .
Please Log in or Create an account to join the conversation.
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
// Progress bar value
$('#progress-wrapper').css('visibility', 'hidden');
setTimeout(function() {
$('#progressbar').progressbar('value', 50 );
$('#progress-wrapper').css('visibility', 'visible');
}, 250);
});
</script>
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Please Log in or Create an account to join the conversation.
The progress-bar does not indicate the right value because of these hidden questions. I understand that it is difficult to fix this.
In the previous message Tony suggested this:
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
// Progress bar value
$('#progress-wrapper').css('visibility', 'hidden');
setTimeout(function() {
$('#progressbar').progressbar('value', 50 );
$('#progress-wrapper').css('visibility', 'visible');
}, 250);
});
</script>
How would I implement it, where would I put this code?
Please Log in or Create an account to join the conversation.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Please Log in or Create an account to join the conversation.