Skip to content

Create-select has no way to specify a default value? #121

Answered by rabbibotton
sabracrolleton asked this question in Q&A
Discussion options

You must be logged in to vote

pre-select (e.g. have a default value) in a select box.

The main way to add options to a select box is to use the create-option method, to make it the selected object, just add :selected t
The convenience function add-select-option also has that option. add-select-option does not currently provide a way, but that would be a trivial enhancement. I will look in to it in the near future after my first iterations on clog-web-site are done and a few important features like alignment features in the builder.

puzzled on how I would access anything other than sqlite

I will add some comments soon, as it is just a matter of how you initialize dbi.

mysql:

(defvar connection
(dbi:connect :mysql
:…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by sabracrolleton
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