[html-formfu] constraint on multi-select elements

Carl Franks fireartist at gmail.com
Fri Jun 1 10:38:12 GMT 2007

On 01/06/07, Thorsten Domsch <tdomsch at gmx.de> wrote:
> thanks for your help, it works great. The only problem left is that i can't
> get constraints working on that multi element. I get the following error
> message "no field names to add constraint to at /usr/loc...".
> the fields of course are set using the setup method.

If you don't include any code of what you've tried so far - it's hard
to try to help.

Have you done everything I suggested in the first mail?
Are you trying to add the constraint to the block or it's sub-elements?
If block - have you given the block element itself a name, and are you
using that when you define the constraint?
Because constraint() behaves differently depending on whether you're
calling it on a field or a block, you'll have to make sure you define
the 'name' if you're wanting it attached to the block.

(and could you try to reply to earlier messages rather than starting a
new thread when it's still the same problem / subject - it makes it
easier for people searching the archive later to see if the problem
was solved)


More information about the HTML-FormFu mailing list