Skip to content

Form: How to Create a Static Choice #606

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

You must be logged in to vote

Hello! Isn't this example from the documentation what you need?

select 
    'form'                        as component,
    'examples/show_variables.sql' as action;
select 
    'Fruit'  as name,
    'select' as type,
    TRUE     as searchable,
    1        as value,
    '[{"label": "Orange", "value": 0}, {"label": "Apple", "value": 1}, {"label": "Banana", "value": 3}]' as options;

https://sql.datapage.app/component.sql?component=form

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@nofue
Comment options

Answer selected by nofue
Comment options

You must be logged in to vote
1 reply
@nofue
Comment options

Comment options

You must be logged in to vote
1 reply
@nofue
Comment options

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
3 participants