single checkbox - required: what does it mean?

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

single checkbox - required: what does it mean?

Jarosław Kowalewski
Hi,
For a single checkbox there is always value true/false (That's ok). But in such case field is always 'correct' even if the field is not check - for condition required = yes. The behavior is not obvious and a little confusing. 
The only fix is to use formulas required like "./text() = 'false' " but in the result after the field is checked star disappears.
image.png

image.png

//Jarek

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/CAHFpwcUZDWdfNSiCFq2AxYeSJLPVPvXyNrcV8wdnhDHv%3DG4R8A%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: single checkbox - required: what does it mean?

Alessandro  Vernet
Administrator
Hi Jarek,

Yes, I agree. Should making a Single checkbox "required" be "mapped" to a
constraint `. = 'true'` in the source?  I reckon this would make sense.

Thinking out loud, the thing is that Form Builder doesn't have a knowledge
of specific XBL components, so we would need a mechanism for XBL components
to declare that required is enforced using a constraint they provide. When
users mark the filed as required, Form Builder would add the constraint, and
conversely, when it finds that constraint, it would indicate the field as
required in the Control Settings. Maybe inside:

    <fb:metadata>
        <fb:validation>
            <fb:required constraint=". = 'true'"/>
        </fb:validation>
    </fb:metadata>

We'll need to think some more about this one! And of course, just let me
know if I missed your point.

-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 view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1605664886552-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: single checkbox - required: what does it mean?

Alessandro  Vernet
Administrator
Hi Jarek,

We gave some more thoughts about this, and I think came up with a better
design, which is described in the following 2 RFEs. And of course, you'll
let me know if you have any feedback about this.

https://github.com/orbeon/orbeon-forms/issues/4709
https://github.com/orbeon/orbeon-forms/issues/4710

-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 view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1605853516608-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: single checkbox - required: what does it mean?

Bruno Milagre
Hi Alex,

Are the RFEs you mentioned available with the new versions or do you have to add them somehow?

I would like to make sure before updating, currently we have version 2018.1.1 installed.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/9e6d01bb-6734-44ab-ae96-7b78c5044e8en%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: single checkbox - required: what does it mean?

Alessandro  Vernet
Administrator
Hi Bruno,

Unfortunately, these haven't been implemented yet, but I added +1 from you.

-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 view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1615269786299-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet