Hi Peter, Yes, setting min and max values in the repeat tag should work as you need. As you point out, it is probably not well documented, so please let us know if it isn't working as you imagine it should. Thanks for using Galaxy, Dan On Apr 19, 2011, at 6:47 AM, Peter Cock wrote:
Hi all,
I'm working on a tool where the <repeat> tag looks like an elegant solution - however I want to limit the number of repeats to be 1, 2 or 3. i.e. I want to set min="1" and max="3" attributes for the <repeat>, based on analogy to the <param> tag.
Is this possible, but not documented here? https://bitbucket.org/galaxy/galaxy-central/wiki/ToolConfigSyntax
In terms of the GUI, I'd like the page to preload with as many entries as the min setting (zero by default), and disable the add button once the max setting is reach (default no limit).
(Alternatively you could validate the max/min when the form is submitted by clicking the execute button, but that seems less user friendly.)
If this isn't already possible, would it be generally useful to add this?
Thanks,
Peter ___________________________________________________________ Please keep all replies on the list by using "reply all" in your mail client. To manage your subscriptions to this and other Galaxy lists, please use the interface at: