Skip to content

Help with Multiple Select Searchable Component #918

Answered by lovasoa
srcarvalho12 asked this question in Q&A
Discussion options

You must be logged in to vote

I should probably improve the wording and the examples, but this is the important part of the documentation that you may have missed:

You can authorize the user to select multiple options by setting the multiple property to true.
In this case, you should add square brackets to the name of the field (e.g. 'my_field[]' as name).

-- https://sql-page.com/component.sql?component=form

In your case, what this means is you should have

SELECT
    'adicionais[]'    as name,
   ...

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by srcarvalho12
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants