Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Progress Bar Settings

Progress Bar Settings 3 years 10 months ago #88242

  • jelo
  • jelo's Avatar
  • Online
  • Platinum Lime
  • Posts: 1379
  • Thank you received: 181
  • Karma: 52
When bridging surveys there is the existing problem to show a correct progress bar.

A few parameter would allow an easy fix.

1.) Allow setting a Start Value (%) and an End Value (%).

Not sure if the next one could can be implemented easily:
2.) Calculation routine based on a) Questions shown or b) Question position

Any ideas to add?
The administrator has disabled public write access.

Progress Bar Settings 2 years 10 months ago #101952

  • emimarz
  • emimarz's Avatar
  • Offline
  • Junior Lime
  • Posts: 31
  • Thank you received: 5
  • Karma: 1
mmm... try implement your self, I do it.
You have {NUMBEROFQUESTIONS} and {QUESTION_NUMBER}

percent_value = (100/{NUMBEROFQUESTIONS})*{QUESTION_NUMBER}

isn't it?

kindest regards
Emiliano
The administrator has disabled public write access.

Progress Bar Settings 1 year 3 months ago #121527

  • jelo
  • jelo's Avatar
  • Online
  • Platinum Lime
  • Posts: 1379
  • Thank you received: 181
  • Karma: 52
emimarz wrote:
{QUESTION_NUMBER}
I cannot find this variable.

A good progressbar should be calculated based on
a) Amount of questions shown
and
b) Position of current displayed question/group inside the survey

Is the codebase ready to deliver these infos?
The administrator has disabled public write access.

Progress Bar Settings 1 year 3 months ago #121537

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1826
  • Thank you received: 449
  • Karma: 111
Jelo wrote:
{QUESTION_NUMBER}
I cannot find this variable.

This keyword/variable exists but useless to count displayed question if the survey use conditions... The only way is to play around the relevance status ( {Qcode.relevanceStatus} )

I attach a sample survey with (plain text) survey progress. Looks pretty hard to adapt this to get a dynamic progress bar; I've tried some months ago... and no way :(
Maybe easier with a 100% javascript workaround...

File Attachment:

File Name: limesurvey...1234.lss
File Size:23 KB
BenoƮt

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
All LS releases => bit.ly/1VMuTDu | 2.06lts => bit.ly/1Qv44A1
Demo surveys => bit.ly/20NW9V8 (already included in /docs/demosurveys)
Last Edit: 1 year 3 months ago by Ben_V.
The administrator has disabled public write access.

Progress Bar Settings 1 year 3 months ago #121549

  • jelo
  • jelo's Avatar
  • Online
  • Platinum Lime
  • Posts: 1379
  • Thank you received: 181
  • Karma: 52
Last Edit: 1 year 3 months ago by jelo.
The administrator has disabled public write access.
The following user(s) said Thank You: Ben_V
Time to create page: 0.205 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form