The LimeSurvey Fund-Raiser 2012 is complete. Thank you for donating a total of 25,000 USD!     List of donors »

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

SUJET : How bypass php zip import to add resources ?

Re: How bypass php zip import to add resources ? il y a 5 mois 1 semaine #90078

  • tpartner
  • Portrait de tpartner
  • Hors ligne
  • LimeSurvey Team
  • Messages : 2858
  • Remerciements reçus 424
  • Karma: 244
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.
L'administrateur à désactivé l'accès en écriture pour le public.

Re: How bypass php zip import to add resources ? il y a 5 mois 1 semaine #90087

  • hug
  • Portrait de hug
  • Hors ligne
  • Fresh Lemon
  • Messages : 16
  • Remerciements reçus 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.
L'administrateur à désactivé l'accès en écriture pour le public.

Re: How bypass php zip import to add resources ? il y a 5 mois 1 semaine #90088

  • Ben_V
  • Portrait de Ben_V
  • Hors ligne
  • Platinum Lime
  • Messages : 735
  • Remerciements reçus 136
  • Karma: 43
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...
L'administrateur à désactivé l'accès en écriture pour le public.
Cet utilisateur a été remercié pour son message par: hug

Re: How bypass php zip import to add resources ? il y a 5 mois 1 semaine #90092

  • tpartner
  • Portrait de tpartner
  • Hors ligne
  • LimeSurvey Team
  • Messages : 2858
  • Remerciements reçus 424
  • Karma: 244
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.
L'administrateur à désactivé l'accès en écriture pour le public.
Cet utilisateur a été remercié pour son message par: hug

Re: How bypass php zip import to add resources ? il y a 5 mois 1 semaine #90152

  • hug
  • Portrait de hug
  • Hors ligne
  • Fresh Lemon
  • Messages : 16
  • Remerciements reçus 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 :)
L'administrateur à désactivé l'accès en écriture pour le public.
Modérateurs: DenisChenu, ITEd
Temps de génération de la page : 0.293 secondes
Donation Image