Using submitname works. It appears that you can't change the "name" attribute.
-----Original Message----- From: Jim Grandy [mailto:[EMAIL PROTECTED] Sent: Thursday, October 27, 2005 1:37 PM To: Tim Patsch Cc: [email protected] Subject: Re: [Laszlo-user] manipulating forms before submission Hi Tim, Have you tried using submitname instead of name? I'm new to this code as well, but I took a quick look at lps/components/base/ baseformitem.lzx and it appears as though the submitname attribute it used in preference to the name attribute when the form submission data is constructed. This attribute is also documented in the LZX Reference on the baseformitem page. jim On Oct 26, 2005, at 4:08 PM, Tim Patsch wrote: > Once again, not gettting a bite in this area and we need one. > > We make an application that allows the user to create and delete > blocks of > user input form components. Picture this. A block of questions > about a > user's kid. > > age > sex > height > weight > eye color > > Now picture the user has three kids. We allow the user to hit an > "add" > button until there are three blocks of questions, one per kid. > > age age age > sex sex sex > height height height > weight weight weight > eye color eye color eyecolor > > > > The blocks of questions are instances of classes. Problem is that > when the > user submits, the form submission architecture does not permit us to > distinguish the individual fields and thus retrieve them server side. > Dynamically renaming the individual fields (like "age1", "age2", > "age3") has > no effect. The server still sees just "age". It's almost as if > the form > takes a snapshot of components as they are added and that's it. No > manipulation of them allowed from then on. > > Is this the case? Could someone suggest a method permitting dynamic > manipulation of form components? > > > > > > > -----Original Message----- > From: William Krick [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 25, 2005 12:16 PM > To: [email protected] > Subject: [Laszlo-user] manipulating forms before submission > > > Our application creates a dynamic form using the laszlo <form> tag. > > When I attempt to change the name attribute of a control, the form > still > submits using the original name. It seems that the names of the > controls > are bound to the form when the app is created and cannot be > changed. Is > this the case? > > We would also like to be able to add and or remove groups of > controls from > the form. Is this supported? > > > > > _______________________________________________ > Laszlo-user mailing list > [email protected] > http://www.openlaszlo.org/mailman/listinfo/laszlo-user > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.361 / Virus Database: 267.12.5/147 - Release Date: > 10/24/2005 > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.361 / Virus Database: 267.12.5/147 - Release Date: > 10/24/2005 > > _______________________________________________ > Laszlo-user mailing list > [email protected] > http://www.openlaszlo.org/mailman/listinfo/laszlo-user > _______________________________________________ Laszlo-user mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-user _______________________________________________ Laszlo-user mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-user
