Selection Tag - at least one selection

Dear community,
i have created a form with several pages and check fields before jumping to the next page. I did not make it on selection tags, it is ignored.
At least one language must be selected, otherwise the user should not be allowed to go to the next page, i do this with a button visible true false.
But i miss the coding for the check, can someone help me pls ?
Thanks yul32

maybe too complicated described - 1 tag must be selected - how can I code this? when submitting the form the send button checks anyway but I submit it later …

Since selectedIndices is an array, you could use the length property:

 $w('#sprachen').selectedIndices.length === 1;

made my day anthonyb , you’re the BEST, thy

i was happy too early, if a language is selected it works. if several are selected unfortunately not :frowning:

i was happy too early, if a language is selected it works. if several are selected unfortunately not :frowning:

@kenanuenal I’m not sure what your requirements are. Can more than one be selected? If so, it’s a simple adjustment:

 $w('#sprachen').selectedIndices.length > 0
1 Like

@tony-brunsman Perfect, that’s exactly what it is - Thank you - SOLVED