<http://discuss.orbeon.com/file/t375838/Capture1.png>
Hi Alex, Let me explain my requirement. I want to have only one check for first choice in this repeated grid. I check first choice for 1st row of repeated grid and then for 2nd row, I also check the first choice of 2nd row. As the result, the 1st row of this grid will be automatically unchecked. Please guide me. :D -- 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/1592655230154-0.post%40n4.nabble.com. |
Administrator
|
Hi Shine,
In Orbeon Forms, we don't recommend users interacting with one field changes the value of another field (unless that other field is readonly), but you can mark both fields invalid if they have the same value selected: Exclusive_checkboxes.gif <http://discuss.orbeon.com/file/t119778/Exclusive_checkboxes.gif> Assuming your field is named `choice`, you can achieve this with the following validation expression: not(xxf:split(.) = (//choice except .)/xxf:split(.)) You'll let me know if this works for 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/1592880772149-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Administrator
|
And the source of the form created for testing, in case you would like to run
it in Form Builder: form.xml <http://discuss.orbeon.com/file/t119778/form.xml> ‑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/1592881646023-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
https://demo.orbeon.com/demo/fr/orbeon/builder/edit/884836905cee79e2e85837d187b573d29bb76cca
<https://demo.orbeon.com/demo/fr/orbeon/builder/edit/884836905cee79e2e85837d187b573d29bb76cca> Thank you Alex for guiding me. For single checkbox in repeated grid, which validation expression can I use? -- 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/1592900433308-0.post%40n4.nabble.com. |
Administrator
|
Hi Shine,
In the case of a single checkbox, I imagine that you want a most one line in the repeated grid to have that checkbox checked, correct? If so, I think pretty much the same expression would work, except you don't need to the calls to `xxf:split()` in that case, that is: `not(. = (//choice except .))`. Does that work for 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/1593220854156-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Administrator
|
Hi Shine,
Did you get a chance to try that expression on a single checkbox? If so, did it work for 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/1593839464938-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |