Progress Bar – Should only increase if a section is complete

More
2 years 5 months ago #121602 by garvsaxena
garvsaxena replied the topic: Progress Bar – Should only increase if a section is complete
Hey all,
I have developed some solution for this problem. Actually I have stores the answers with the question id in a separate table. And after storing I have calculated the entries in the table against the token and got the answered questions total. With the help of this i have calculate the following formula:
$procomp = ((int)(100*(1-$empty_count/($count-1))));

Now finally got the result but one problem m facing that i want to show this result into the progress bar div but i am unable to do this, can some body help me out to append the result in the progress bar div.
The div is :
<div id="tfr-progressbar">
<div style="width: 2%;" aria-valuemax="100" aria-valuemin="0" aria-valuenow="0" role="progressbar" class="progress-bar">2%</div>
</div>

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!