<div dir="ltr"><div><div><div><div><div>Hi all,<br></div>This is perhaps more of a WTForms question, but I'm hoping people here will know how to do this in Flask-WTF.<br><br></div>I have three select lists, and until the user clicks them, they're all blank. I want to have them each show an unselectable option to indicate that they exist, something like<br></div>option value="1" default disabled>Please choose an option</option<br><br></div>I can't find a way to do this in WTF though. I found one forum that said you can pass a "default=" argument to the SelectField constructor, but I don't see that in the official documentation. Plus, that doesn't tell me how to make the same item disabled, or if what goes after the equals sign is an index or an element in the choices list of values.<br><br></div>Thanks for any suggestions. If this is doable, will it work the same way on SelectMultipleField items as well?<br clear="all"><div><div><div><div><div><div><div><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div>Alex Hall<br></div>Automatic Distributors, IT department<br></div><a href="mailto:ahall@autodist.com" target="_blank">ahall@autodist.com</a><br></div></div>
</div></div></div></div></div></div></div></div>