[html-formfu] Possible bug - Submit element when forms have errors

Carl Franks fireartist at gmail.com
Thu Feb 19 09:43:49 GMT 2009


2009/2/18 Octavian Râsnita <orasnita at gmail.com>:
> From: "Greg Coates" <greg at coatesoft.com>
>>
>> I have written some forms with different names for the submit buttons.
>> Then, however, the form doesn't return true for 'submitted_and_valid' for
>> the second button.  (i.e. the 'Finish' button in our example.)  I haven't
>> found a way to mark more than button as the submit button using the
>> 'indicator' attribute.  Am I incorrect in this?
>>
>> Thanks,
>> Greg
>
> You can add a hidden element that has the name "submit" and you can also use
> "submit" as the indicator.
>
> I found this even a better idea than to create a submit button with the name
> "submit", because in the past I met the situation when the browser (IE)
> didn't send the submit field if the user didn't click on the browser, but
> pressed enter on another form field.

That's the main reason I don't use 'indicator' unless I have to.

I think I'll just remove the indicator from the SYNOPSIS in the docs,
as it's just not needed most of the time.

Carl



More information about the HTML-FormFu mailing list