Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: How bypass php zip import to add resources ?

Re: How bypass php zip import to add resources ? 6 Monate 5 Tage her #90078

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

Re: How bypass php zip import to add resources ? 6 Monate 5 Tage 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 ? 6 Monate 5 Tage her #90088

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

Re: How bypass php zip import to add resources ? 6 Monate 5 Tage her #90092

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

Re: How bypass php zip import to add resources ? 6 Monate 4 Tage 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: DenisChenu, ITEd
Ladezeit der Seite: 0.200 Sekunden
Donation Image