Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Bedingung zur Anzeige einer Frage basierend auf Schieberegler Wert definieren

  • petescha
  • petescha's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 10 months ago #169259 by petescha
Ich versuche basierend auf der Auswahl eines Schiebereglers eine Folgefrage entweder anzuzeigen oder nicht anzuzeigen.
Der Schieberegler lässt eine Auswahl zwischen 0 und 100 in 10er Schritten zu.

In der Folgefrage habe ich nun folgende Bedingung definiert:
Wenn gewählter Wert des Schiebereglers kleiner gleich 70 - soll Folgefrage angezeigt werden.
Relevanz-Gleichung: ((( ! is_empty(Z01_SQ001.NAOK) && (Z01_SQ001.NAOK <= "70"))))

Das Funktioniert soweit - Problem ist allerdings, dass auch im Falle der Auswahl 100 die Folgefrage angezeigt wird.

Gibt es eine Möglichkeit das so zu lösen, dass die Folgefrage wirklich nur bei Werten 0-70 angezeigt wird.?


Version 2.64.1+170310
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 10 months ago #169264 by tpartner
English in this forum please.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • petescha
  • petescha's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 10 months ago #169265 by petescha
I tried to either show or hide a question based on the selection of a slider.

The slider is defined as follows: min 0 and max 100 in increments of 10.

In the question I have defined the below condition:
If the selected value of the slider is less than or equal to 70 - the question should be displayed.
(((! Is_empty (Z01_SQ001.NAOK) && (Z01_SQ001.NAOK <= "70"))))

Works so far - problem is that even in case of selecting 100, the question is displayed.

Is there a way to solve this to ensure that the question is only displayed at values between 0-70.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 10 months ago #169266 by tpartner
I think that's because you are converting the value 70 to a string by wrapping it in quotes.

Try this:
Code:
!is_empty(Z01_SQ001.NAOK) &amp;&amp; Z01_SQ001.NAOK <= 70

Or, failing that, this:
Code:
!is_empty(Z01_SQ001.NAOK) &amp;&amp; Z01_SQ001.NAOK <= 70 &amp;&amp; Z01_SQ001.NAOK != 100

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: petescha
The topic has been locked.
  • holch
  • holch's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 10 months ago #169272 by holch
So what am I going to do with this one?! Because of the original post and title I should move it to the German Forum, but the answer (and from what I can see solution) is in English. So I guess I'll just leave it here in the English forum. ;-)

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose