On Mon, Dec 27, 2010 at 3:08 PM, Leandro Hermida <softdev@leandrohermida.com> wrote:
Happy holidays,
Apologies for a simple question, I cannot find seem to find an answer looking through the docs and Galaxy tool xml files in the distro.
Is there a way to have a select menu where I don't want there to be a default selection (when the form loads it is empty) yet the user must pick something otherwise one of those nice validator red message comes up telling you to pick something? For example:
<param name="organism" type="select" force_select="true" label="Organism"> <option></option> <option value="Homo_sapiens">Homo sapiens</option> <option value="Mus_musculus">Mus musculus</option> <option value="Rattus_norvegicus">Rattus norvegicus</option> </param>
If I use the validator type="empty_field" or "no_options" it doesn't work, the user can hit execute with an empty select and it tries to execute.
best, Leandro
Hi Leandro, This is very similar to the problem I'm having, see this thread: http://lists.bx.psu.edu/pipermail/galaxy-dev/2010-December/004082.html I would expect the accept_default="false" option to do what you want, but it doesn't: https://bitbucket.org/galaxy/galaxy-central/wiki/ToolConfigSyntax Peter