Welcome to the LimeSurvey Community Forum

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

Validation

  • FriedrichSimon
  • FriedrichSimon's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 5 months ago #175270 by FriedrichSimon
Validation was created by FriedrichSimon
Ich habe ein Problem mit der Validierung eines Textfelds. In der vorschau in LimeSurvey klappt es wunderbar - nur leider in der App 'Offlinesurveys' nicht.

Hat jemand eine Idee?

Die Validierungsregel lautet: /^(([0][1-9])|([1][0-4]))-([\d]{4})$/

___________________________________________________________

I have a problem with validating a text box. In the preview in LimeSurvey it works wonderfully - but unfortunately not in the app 'Offlinesurveys'.

Does somebody has any idea?

The validation rule is: /^(([0][1-9])|([1][0-4]))-([\d]{4})$/
The topic has been locked.
  • FriedrichSimon
  • FriedrichSimon's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 5 months ago #175283 by FriedrichSimon
Replied by FriedrichSimon on topic Validation
Ich habe das Problem eingrenzen können.
Offlinesurveys kann offenbar nicht mit einem Logischen Oder ("|") umgehen.
Eine Validierung wie /^(0|1)$/ funktioniert leider nicht. Ich habe den Support diesbezüglich kontaktiert.

[hr]
I have been able to narrow down the problem.
Obviously, offlinesurveys can not handle a logical or ("|").
A validation like /^(0|1)$/ does not work. I contacted the support in this regard.
The topic has been locked.
More
5 years 5 months ago - 5 years 5 months ago #175310 by aaskoura
Replied by aaskoura on topic Validation
Hi,
Yes validation breaks very often because it is dependent on the survey DOM, which changes frequently with new LS releases. If you can share your survey, I will have that fixed ASAP. Just the public url, no need for credentials

Regards,
Amr Askoura,
OfflineSurveys Support
Last edit: 5 years 5 months ago by aaskoura.
The topic has been locked.
  • FriedrichSimon
  • FriedrichSimon's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 5 months ago #175321 by FriedrichSimon
Replied by FriedrichSimon on topic Validation
Hi,

I have created an demo survey with 1 | 0 validation.

demo.limesurvey.org/index.php?r=survey/index&sid=452719&lang=de

Thank you for fast response.
The topic has been locked.
More
5 years 5 months ago #175363 by aaskoura
Replied by aaskoura on topic Validation
500 Internal Server Error on this link
The topic has been locked.
More
5 years 5 months ago #175368 by jelo
Replied by jelo on topic Validation
The demo installation is buggy. I get such errors often during the last weeks.
The demo installation is reset from time to time. Please attach files in threads.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • FriedrichSimon
  • FriedrichSimon's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 5 months ago - 5 years 5 months ago #175372 by FriedrichSimon
Replied by FriedrichSimon on topic Validation
Last edit: 5 years 5 months ago by FriedrichSimon.
The topic has been locked.
More
5 years 5 months ago #175380 by aaskoura
Replied by aaskoura on topic Validation
It looks very OK to me... Don't you experience the same?
The topic has been locked.
  • FriedrichSimon
  • FriedrichSimon's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 5 months ago #175384 by FriedrichSimon
Replied by FriedrichSimon on topic Validation
Unfortunately no, on my 'offlinesurvey' the valid entries are not recognized as such.
The topic has been locked.
More
5 years 5 months ago - 5 years 5 months ago #175389 by aaskoura
Replied by aaskoura on topic Validation
To be clear... This validation popup shows only when you submit... yes?
Can you tell me which version of the app are you using? and on what device? which Android version?
Last edit: 5 years 5 months ago by aaskoura.
The topic has been locked.
  • FriedrichSimon
  • FriedrichSimon's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 5 months ago - 5 years 5 months ago #175391 by FriedrichSimon
Replied by FriedrichSimon on topic Validation
To be clear... This validation popup shows only when you submit... yes?
Yes, but the red marker showes befor that the validation is not correct.
Can you tell me which version of the app are you using?
Ver. 1.43
and on what device? which Android version?
Tested with: Samsung T580 and OnePlusOne Android.
Last edit: 5 years 5 months ago by FriedrichSimon.
The topic has been locked.
More
5 years 5 months ago #175394 by aaskoura
Replied by aaskoura on topic Validation
I think there is a confusion here
1- on OfflineSurveys -> if you enter A, then the validation message will be Red... correct?
2- on OfflineSurveys -> if you enter A and press submit, then the popup will show... correct?
3- on OfflineSurveys -> if you leave the field empty and press submit, then the answer will be saved without issues... correct?

This is the expected behavior
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose