Welcome, Guest
Username: Password: Remember me

TOPIC: How bypass php zip import to add resources ?

Re: How bypass php zip import to add resources ? 6 months 5 days ago #90078

  • tpartner
  • tpartner's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 2942
  • Thank you received: 448
  • Karma: 254
when i remove the :eq0 it applies to the whole survey.
Not the whole survey, only all text inputs on the current page.

Can you activate another sample survey?
Cheers,
Tony

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: How bypass php zip import to add resources ? 6 months 5 days ago #90087

  • hug
  • hug's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 16
  • Thank you received: 1
  • Karma: 0
You will find the activated survey here : cdlvg.free.fr/index.php?sid=33913&lang=fr

You just have to choose anyone of the answer in the radio list and time questions will appear.
The administrator has disabled public write access.

Re: How bypass php zip import to add resources ? 6 months 5 days ago #90088

  • Ben_V
  • Ben_V's Avatar
  • OFFLINE
  • Platinum Lime
  • Posts: 749
  • Thank you received: 139
  • Karma: 46
Hi,
It doesn't works if you just remove (or wrap as comment) this kind of code ?:
$('#answer33913X4X34').attr('readonly', 'readonly');
Benoît

goo.gl/Bw5iM => Recherche GG dans le forum français (remplacer "exemple" dans la barre de recherche)
goo.gl/WX8PH => GG search for english forum (Replace "example" in the search bar)
goo.gl/IxiGu => Búsqueda en el foro en español (Cambiar "ejemplo" en la barra de...
The administrator has disabled public write access.
The following user(s) said Thank You: hug

Re: How bypass php zip import to add resources ? 6 months 5 days ago #90092

  • tpartner
  • tpartner's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 2942
  • Thank you received: 448
  • Karma: 254
Yes, in the first question (ID 38), you have this which removes the attribute from all text inputs:
$(".text-short input.text").removeAttr('readonly');

But then in the second question (ID 44), you have this which overrides that and applies the attribute to the first question again:
$(".text-short:eq(0) input.text").attr('readonly', 'readonly');

The JavaScript will be fired sequentially as the page is rendered so any commands or functions will override previous ones.
Cheers,
Tony

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
The following user(s) said Thank You: hug

Re: How bypass php zip import to add resources ? 6 months 5 days ago #90152

  • hug
  • hug's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 16
  • Thank you received: 1
  • Karma: 0
Ok ! It works perfectly now :D

I understand my mistake : i thought I could have set this parameter question by question.

One more time, but the last one for this question type, thank you very much you too for your help :)
The administrator has disabled public write access.
Moderators: DenisChenu, ITEd
Time to create page: 0.209 seconds
Donation Image