Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:
  • Page:
  • 1
  • 2

TOPIC: Custom check boxes and radio buttons

Custom check boxes and radio buttons 5 years 7 months ago #55203

  • ftrifoglio
  • ftrifoglio's Avatar
  • Offline
  • Junior Lime
  • Posts: 20
  • Karma: 1
my startpage.pstpl includes just the template.css and the template.js

I tried to add the following line then but nothing yet.
<script type="text/javascript" src="{TEMPLATEURL}jquery-1.4.4.min"></script>

Then I noticed that if I do all that stuff the progress bar disappear.
Last Edit: 5 years 7 months ago by ftrifoglio.
The administrator has disabled public write access.

Custom check boxes and radio buttons 5 years 7 months ago #55219

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6239
  • Thank you received: 1383
  • Karma: 539
Hmm...seems that the code got mangled in my original post. The code to be added to the beginning of startpage.pstpl should be:

File Attachment:

File Name: new_2_2011-01-18.txt
File Size:0 KB



This code, among other things, will change the source of the original link to jQuery to the new file you have included in your template. This means that only the new jQuery is loaded so there is no conflict.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 5 years 7 months ago by tpartner.
The administrator has disabled public write access.

Custom check boxes and radio buttons 5 years 7 months ago #55221

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6239
  • Thank you received: 1383
  • Karma: 539
Okay, this forum software is pissing me off! It won't let me insert the code. Line 5 in the above should be as in the attached.

File Attachment:

File Name: new_2.txt
File Size:0 KB
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 5 years 7 months ago by tpartner.
The administrator has disabled public write access.

Custom check boxes and radio buttons 5 years 7 months ago #55231

  • ftrifoglio
  • ftrifoglio's Avatar
  • Offline
  • Junior Lime
  • Posts: 20
  • Karma: 1
ok it makes sense now, but still don't work for me.

it looks like that on chrome8 (but also in ie9). In firefox3 it's like nothing changed.





the progress bar disappears and just the first radio button looks as it should be but it's not selectable.
The administrator has disabled public write access.

Custom check boxes and radio buttons 5 years 7 months ago #55264

  • ftrifoglio
  • ftrifoglio's Avatar
  • Offline
  • Junior Lime
  • Posts: 20
  • Karma: 1
I followed what did holch in this survey www.ivp-surveys.com/sc/091SL/index.php?sid=29851&lang=en

I added the following code to the startpage.pstpl

File Attachment:

File Name: 2.txt
File Size:1 KB


Everything is ok but the progress bar disappears and the radio button are not markable. Actually they are but you have to click on the label. In the array the radio buttons work fine.
The administrator has disabled public write access.

Custom check boxes and radio buttons 5 years 7 months ago #55268

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6239
  • Thank you received: 1383
  • Karma: 539
Everything is ok but the progress bar disappears and the radio button are not markable.
That's the jQuery conflict.

I can get it to work in 1.91RC2 but not in 1.90. Still investigating...
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

Custom check boxes and radio buttons 5 years 6 months ago #56329

  • ftrifoglio
  • ftrifoglio's Avatar
  • Offline
  • Junior Lime
  • Posts: 20
  • Karma: 1
I did get the chance to install the 1.91RC2 and it works fine.

I had to change a little bit the template.css because on some questions type (list radio, gender) the button was not markable. The span that contains the button background didn't overlap the input.
The administrator has disabled public write access.

Custom check boxes and radio buttons 5 years 6 months ago #56331

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5984
  • Thank you received: 368
  • Karma: 260
Thanks for your feedback!

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.303 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form