- Posts: 24
- Thank you received: 3
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
progress bar according to number of questions?
- Malte
- Topic Author
- Offline
- Junior Member
Less
More
10 years 11 months ago #95120
by Malte
progress bar according to number of questions? was created by Malte
Hi there,
I was wondering, whether there is any chance of linking the progress bar to the number of questions instead of having it linked to the number of groups. Unfortunately we cannot distribute the total number of questions roughly equally among the number of groups and thus have some groups in the beginning of our questionnaire that are rather large.
We are using: Version 2.00+ Build 130226
Cheers,
Malte
I was wondering, whether there is any chance of linking the progress bar to the number of questions instead of having it linked to the number of groups. Unfortunately we cannot distribute the total number of questions roughly equally among the number of groups and thus have some groups in the beginning of our questionnaire that are rather large.
We are using: Version 2.00+ Build 130226
Cheers,
Malte
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10629
- Thank you received: 3696
10 years 11 months ago #95139
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 progress bar according to number of questions?
Only if you put the survey in question-by-question mode. The progress bar is tied to the number of "steps" which, when in group-by-group mode, are groups.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- Malte
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 24
- Thank you received: 3
10 years 11 months ago #95142
by Malte
Replied by Malte on topic progress bar according to number of questions?
I am afraid , with around 350 questions, this is not an option.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10629
- Thank you received: 3696
10 years 11 months ago #95143
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 progress bar according to number of questions?
In that case, you can force the progress bar value for each group with JavaScript.
1) Set up your survey to use JavaScript .
2) Add something like this to the to the source of the group description. Replace 44 with your value for that group.
1) Set up your survey to use JavaScript .
2) Add something like this to the to the source of the group description. Replace 44 with your value for that group.
Code:
<script type="text/javascript" charset="utf-8"> $(document).ready(function(){ setTimeout(function() { $('.ui-progressbar-value').css({ 'width':'44%' }); }, 100); }); </script>
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- Malte
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 24
- Thank you received: 3
10 years 11 months ago #95150
by Malte
Replied by Malte on topic progress bar according to number of questions?
Thanks, we will try to give that solution a go.
Cheers,
Malte
Cheers,
Malte
The topic has been locked.
- arielmosto
- Offline
- Junior Member
Less
More
- Posts: 27
- Thank you received: 0
7 years 11 months ago #135031
by arielmosto
Replied by arielmosto on topic progress bar according to number of questions?
Hi Tony! I'm trying this code in the 2.05 but does not work. You can help me to update it? Thanks ! Ariel
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10629
- Thank you received: 3696
7 years 11 months ago #135063
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 progress bar according to number of questions?
Hi Ariel, this works for me in 2.05 with the default template:
Code:
<script type="text/javascript" charset="utf-8"> $(document).ready(function(){ setTimeout(function() { $('.ui-progressbar-value').css({ 'width':'44%', 'display':'block' }); }, 100); }); </script>
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.