condition de format dans les sous questions

More
5 months 2 weeks ago #193225 by dorenan
Bonjour
Je souhaiterai griser (ou ne pas montrer)une (des)sous questions selon certaines occurrences :
Soit (entre autres) : en consultation externe et hospit à domicile, en consultation externe et établissements médico sociaux, en consultation externe et structure d'exercice coordonnée. Voici respectivement les code des sous questions à "griser":
Q277ANbBEPModalite_bepcs_bepphad.NAOK
Q277ANbBEPModalite_bepcs_bepmedsoc.NAOK
Q277ANbBEPModalite_bepcs_bepexo.NAOK
Je joins aussi l'impression écran du tableau
Es-ce possible et quelle est la syntaxe?
Attachments:

Please Log in to join the conversation.

LimeSurvey Partners
More
5 months 2 weeks ago #193226 by Joffm
Bonjour.

Javascript:
<script type="text/javascript" charset="utf-8">
   $(document).ready(function() {
    $('input[name="{SGQ}Y002_X005"]').attr('disabled','disabled');
	$('input[name="{SGQ}Y002_X006"]').attr('disabled','disabled');
	$('input[name="{SGQ}Y003_X005"]').attr('disabled','disabled');
	$('input[name="{SGQ}Y003_X006"]').attr('disabled','disabled');
	$('input[name="{SGQ}Y004_X005"]').attr('disabled','disabled');
	$('input[name="{SGQ}Y004_X006"]').attr('disabled','disabled');
	$('input[name="{SGQ}Y005_X004"]').attr('disabled','disabled');
	$('input[name="{SGQ}Y005_X005"]').attr('disabled','disabled');
	$('input[name="{SGQ}Y005_X006"]').attr('disabled','disabled');
  });
</script>



File Attachment:

File Name: limesurvey...2857.lss
File Size:20 KB


Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

More
5 months 2 weeks ago #193258 by dorenan
Merci beaucoup, mais je ne connais pas le langage javascript...
Ne peut-on pas le faire dans le filtre conditionnel des questions?
Bien cordialement
Dorenan

Please Log in to join the conversation.

More
5 months 2 weeks ago #193279 by DenisChenu
Non,

@Joffm t'as donné la meilleure méthode actuelle.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development . I don't answer to private message.

Please Log in to join the conversation.

Moderators: Nickko

Start now!

Just create your account and start using Limesurvey today.

Register now