Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: How bypass php zip import to add resources ?

Re: How bypass php zip import to add resources ? 1 Jahr 9 Monate her #90078

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 4192
  • Dank erhalten: 788
  • Karma: 359
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 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.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: How bypass php zip import to add resources ? 1 Jahr 9 Monate her #90087

  • hug
  • hugs Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 16
  • Dank erhalten: 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.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: How bypass php zip import to add resources ? 1 Jahr 9 Monate her #90088

  • Ben_V
  • Ben_Vs Avatar
  • OFFLINE
  • Platinum Lime
  • Beiträge: 1081
  • Dank erhalten: 240
  • Karma: 76
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...
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: hug

Re: How bypass php zip import to add resources ? 1 Jahr 9 Monate her #90092

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 4192
  • Dank erhalten: 788
  • Karma: 359
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 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.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: hug

Re: How bypass php zip import to add resources ? 1 Jahr 9 Monate her #90152

  • hug
  • hugs Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 16
  • Dank erhalten: 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 :)
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.146 Sekunden
Donation Image