trouble with the 'empty_option' parameter #712
Unanswered
SebastiendOrnano
asked this question in
Q&A
Replies: 1 comment 6 replies
-
Hello, Can you follow these steps and report at which point you do not see what you would expect, and what you see instead. mkdir /tmp/sqlpage_712
cd /tmp/sqlpage_712
wget https://github.com/sqlpage/SQLPage/releases/download/v0.31.0/sqlpage-linux.tgz
tar xvf sqlpage-linux.tgz
cat <<EOF > index.sql
select
'form' as component;
select
'Fruit' as name,
'select' as type,
'Select a fruit...' as empty_option,
'[{"label": "Orange", "value": 0}, {"label": "Apple", "value": 1}, {"label": "Banana", "value": 3}]' as options;
EOF
./sqlpage.bin Then post a screenshot of what you see in your browser on http://localhost:8080, and what you see in your console. This is what the console shows for me
If the results are different for you after following the exact same steps, then we have a bug. Otherwise, you have a problem in your configuration, probably similar to last time, when you had overwritten the prebuilt components without realizing it. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to use the 'empty_option' parameter in a 'select' type field but I does not work.
So I copy paste the example 'select a fruit' from the documentation in my index.sql file but I does not work.
I tried with an older version of sqlpage.bin but I does not work.
I cleaned my sqlpage.json but I does not work.
My templates folder is empty.
So I do not understand where the problem is coming from. (nb : I work on a sqlite database / desktop on linux mint 22)
Any help is welcome and thanks in advance !
Beta Was this translation helpful? Give feedback.
All reactions