Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Simple Number range validation

Simple Number range validation 1 Jahr 7 Monate her #94249

  • kateibe
  • kateibes Avatar
  • OFFLINE
  • Junior Lime
  • Beiträge: 23
  • Karma: 0
Hello,

I am trying to do a simple range validation for a "numerical input" question. The question will ask:

"What is your weight?" and the range should be between 70 and 500. Thank you so much for any help! :)

Kat
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Simple Number range validation 1 Jahr 7 Monate her #94251

  • holch
  • holchs Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 2950
  • Dank erhalten: 377
  • Karma: 124
In the advanced settings you can set a minimum and a maximum value. This should do the trick. or you could go for the slider version of multiple numerical inputs (just use only one subquestion), then the limits are more obvious.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Simple Number range validation 1 Jahr 7 Monate her #94252

  • kateibe
  • kateibes Avatar
  • OFFLINE
  • Junior Lime
  • Beiträge: 23
  • Karma: 0
Hi Holch,

Thank you for your prompt response! Unfortunately, I don't think the slider option will be an option for my survey. I'm afraid that having three different slides to enter the weight will be too confusing.

It would be great if someone could provide me with a validation equation that I could enter into the "validation" section of the numerical input advance settings. Thank you!

Kat
Anhang:
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Simple Number range validation 1 Jahr 7 Monate her #94253

  • holch
  • holchs Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 2950
  • Dank erhalten: 377
  • Karma: 124
OK, seems like you have an older version of LS, because my advanced settings for numerical input gives a max/min value.

weight.png


I am not a regex specialist but I will think about it.

Here a few examples. Maybe you can work on topo of this: docs.limesurvey.org/Using+regular+expres...y#Example:_Age_20-99
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Simple Number range validation 1 Jahr 7 Monate her #94254

  • holch
  • holchs Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 2950
  • Dank erhalten: 377
  • Karma: 124
What I didn't get was why you would need 3 different slides to put the weight?
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: kateibe

Simple Number range validation 1 Jahr 7 Monate her #94255

  • kateibe
  • kateibes Avatar
  • OFFLINE
  • Junior Lime
  • Beiträge: 23
  • Karma: 0
Hi Holch,

Thank you so much for both answers. You are right, I am not sure what I was thinking with the 3 sliders. I actually really like the idea of using the slider instead of having the users type an answer. Thank you so much! B)

Kat
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.133 Sekunden
Donation Image