[Seaside] Split form

Iwan Vosloo iwan at reahl.org
Sat Dec 5 06:33:52 UTC 2015

Hi Jeff,

On 04/12/2015 19:05, J.F. Rick wrote:
> I'm creating a web interface using seaside that's a bit complicated. 
> One particular annoying part is that I have to use multiple forms:
> (1) Form 1 contains some fields
> (2) Form 2 is used for uploading images asynchronously
> (3) Form 3 contains more fields that really belong to Form 1.
> Because of layout and because forms can't be within other forms, I 
> have to have both Form 1 and 3, though really they should be the same 
> form that uses one submit button. Is there a good way to combine the 
> forms in such a way that the callbacks for both forms are evaluated?

In another non-seaside world I have nested forms using the new html5 
form= attribute on inputs: 

So you could have HTML like:

<form name="form2"></form>

<form name="merged1and3a">
   <input .../>

       <input form="form2".../>

   <input .../>

I have not tried to do this in seaside, but can't think offhand why it 
would not work...


Reahl, the Python only web framework: http://www.reahl.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20151205/0d36d069/attachment.htm

More information about the seaside mailing list