Dear OF Team,

I have noticed recently that in Collect Mobile (CM) when a field has an error check, the validation seems to be done immediately after the field appears on the screen. This means that CM displayes (in case of required field) additionally to the "This field is required!" message the error check message before the user is able to record anything. Of course this can be fixed by testing the field itself for being empty (idm:not-blank). Is that the behavior you wanted? Am I correct in the assumptions above?

Thanks for your help!

asked 26 Jun '18, 11:49

Andras's gravatar image

Andras
18481952
accept rate: 0%


Hi András,
Many thanks for testing it, this is something it shouldn't happen.
We will fix this problem with the next version of Collect Mobile.
Many thanks,
Open Foris Team

permanent link

answered 02 Jul '18, 23:10

Stefano%20%28OF%29's gravatar image

Stefano (OF) ♦♦
4.6k19
accept rate: 20%

Dear András,
The error checks are evaluated only when the attributes are not empty, so checking that the field is not blank using the function idm:blank() is useless.
We will improve the way the error messages are shown in Collect Mobile so that they won't overlap with the entry fields.
Many thanks,
Open Foris Team

permanent link

answered 28 Jun '18, 23:11

Stefano%20%28OF%29's gravatar image

Stefano (OF) ♦♦
4.6k19
accept rate: 20%

Dear OF Team,

I have created a simple form with one code attribute (codes: 1, 2, 3) and added a custom error check: Condition to be verified: "$this < 4". Tested with comparison as well, it behaves the same.

As you can see in the attached screen shot, CM (1.6.6 [141]) displayes the error message without recording anything. After selecting any of the options, error messages disappear as expected. If I add idm:not-blank($this) in the Apply when field, only the default "This field is required" is displayed before editing. This looks like CM evaluates the error check while the attribute is empty, unless I'm missing something.

alt text

permanent link

answered 02 Jul '18, 09:12

Andras's gravatar image

Andras
18481952
accept rate: 0%

edited 02 Jul '18, 10:15

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×493
×170

question asked: 26 Jun '18, 11:49

question was seen: 2,599 times

last updated: 02 Jul '18, 23:10