Check out the LimeSurvey source code on GitHub!

Visual feedback for the participants

More
2 years 8 months ago - 2 years 8 months ago #108497 by ayu4ger
Hello,

I try to find a solution for the following problem,
in my experiment it is required to give the user some feedback durring the filling of the blanks.
I searched all over the Internet to find a solution. My idea now is, that I build a very easy bar chart in HTML which is linked to the users entries. This is where the problems are starting, does anyone know a way how to use a user input as a value for html(for example: width = (user_value_here))?

Thank you for reading I appreciate any hints on this topic!
Last Edit: 2 years 8 months ago by ayu4ger.

Please Log in to join the conversation.

More
2 years 8 months ago #108501 by ayu4ger
Please close this post, I found a solution.

FYI:

<fieldset>
<legend>Wert </legend><br />
<br />
<div class="progress-container" style="width: 300px;">
<div style="width: {INSERTANS:User_data_here}%; background: orange;">
 </div>
</div>
</fieldset>

creates a colorfull bar with the width which is linked to a user entry in percent.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form