I've got a simple SELECT binding powering a list of TV input options so we can select a user:
@SELECT `username`,`id` FROM `[[+PREFIX]]users` WHERE `active` = 1 ORDER BY username ASC
The field is not required, and "Allow Blank" is set to "yes". The problem is that since a SQL query will
always return values, there seems to be no way to really have a dropdown list that has its first option be blank (i.e. "-- none --"). Does anyone know a workaround? Is this a common enough use case to make a refactor request?
The only thing I can think of would be to re-do this as an @EVAL binding and force the first option in the array to be empty, but I like the simplicity of the SQL query.
MODX 2.2.6