can this labeled as a bug ?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

can this labeled as a bug ?

bruno.buzzi
Hi,

Check the form:
http://demo.orbeon.com/demo/fr/test-case/number-visibility-no/new

Test Case:
1) Enter "abc" in the input field then press tab (it will display another
integer input field)
2) Enter an invalid number (for example: "xxxx") --> orbeon will display an
error message.
3) Goto to first input field and change the value to "abc2" (here orbeon
will hide the integer field)

Now the situation is that i can send the form (all visible fields are ok)
but in 2) i have an invalid number. And the XML is sent with this invalid
value.

We found this situation because we have a tool to process XML Orbeon forms
and it use the Orbeon Form Definition and check for field types.

So we got in a integer field an invalid value after a little research the
problem is detailed above.

A user enter an invalid number but then instead of clear the field changed
the selection in the above component an the number field was hidden but the
invalid value still there.

regards,
bruno

PD: Orbeon 2017.1

--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: can this labeled as a bug ?

Alessandro  Vernet
Administrator
Hi Bruno,

The general idea is that validation doesn't apply to non-relevant nodes, so
technically this isn't a bug ;). But in some cases, it does make sense to
clear non-relevant fields when the data is saved or submitted. And the
primary concern might not be make the data valid, but to avoid possible
confusions arising from saving data that the user didn't see (because it was
non-relevant). We have an RFE for this, and I added a +1 from you:

https://github.com/orbeon/orbeon-forms/issues/3152

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet