Bienvenue, Invité
Nom d'utilisateur : Mot de passe : Se souvenir de moi

SUJET : HTML Code

HTML Code il y a 1 an 2 mois #97055

  • Unullielf
  • Portrait de Unullielf
  • Hors ligne
  • Fresh Lemon
  • Messages : 4
  • Karma: 0
I need to create an answer template as shown in attachment, I am selecting the List(radio) button as Question type and inserting the HTML code in the answers section. I have following two problems:

1. The Radio Button is appearing along side the HTML table. Please refer to screen shot.
2. The answers are not recorded in the statistics.

The HTML code I used is a follows:

<table border="1" cellpadding="2">
<tbody>
<tr>
<td style="text-align: center;">
<b>Really True for me </b></td>
<td style="text-align: center;">
<b>Sort of True for me </b></td>
<td>
 </td>
<td>
 </td>
<td>
 </td>
<td style="text-align: center;">
<b>Sort of True for me </b></td>
<td style="text-align: center;">
<b>Really True for me </b></td>
</tr>
<tr>
<td style="text-align: center;">
<input name="0" type="radio" value="0" /></td>
<td style="text-align: center;">
<input name="0" type="radio" value="0" /></td>
<td>
Some kids would rather play outdoors in their spare time.</td>
<td style="text-align: center;">
BUT</td>
<td>
Other kids would rather watch T.V. </td>
<td style="text-align: center;">
<input name="0" type="radio" value="0" /></td>
<td style="text-align: center;">
<input name="0" type="radio" value="0" /></td>
</tr>
</tbody>
</table>
<p>
 </p>


Kindly assist.
Pièces jointes :
L'administrateur a désactivé l'accès en écriture pour le public.

HTML Code il y a 1 an 2 mois #97094

  • tpartner
  • Portrait de tpartner
  • Hors ligne
  • LimeSurvey Team
  • Messages : 4134
  • Remerciements reçus 767
  • Karma: 347
You can't just arbitrarily add radio buttons to the form.

You will need to define the buttons as answers in LimeSurvey and then use JavaScript/jQuery to generate the table HTML and move those buttons into the appropriate positions.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
L'administrateur a désactivé l'accès en écriture pour le public.

HTML Code il y a 1 an 2 mois #97096

  • Unullielf
  • Portrait de Unullielf
  • Hors ligne
  • Fresh Lemon
  • Messages : 4
  • Karma: 0
Thanks for your reply.

Could you please help me where I can find the information regarding the code to be written. I did try looking up in the manual but could not find it.


I am using the hosted LimeService. I have not downloaded the limesurvey.
Paul
Dernière édition: il y a 1 an 2 mois par Unullielf.
L'administrateur a désactivé l'accès en écriture pour le public.

HTML Code il y a 1 an 2 mois #97097

  • tpartner
  • Portrait de tpartner
  • Hors ligne
  • LimeSurvey Team
  • Messages : 4134
  • Remerciements reçus 767
  • Karma: 347
You can find tips on how to insert JavaScript here - manual.limesurvey.org/Workarounds:_Manip...ime_using_Javascript


jQuery info here - jquery.com/
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
L'administrateur a désactivé l'accès en écriture pour le public.
Modérateurs: ITEd
Temps de génération de la page : 0.137 secondes
Donation Image