Multiple Forms

I’m using a CMS (php) plugin form app/processor. I have 3 forms on a page, “form1”, “form2”, “form3”, each with the same input fields. They work but I noticed that after submitting, say, “form1”, and getting the success message (page reloads), that forms 2 and 3 contain the info that was sent in form1. The dev suggested I try naming each input field’s “label” attribute uniquely, eg, label=“Email1”, label=“Email2” etc. but that didn’t work. I also tried renaming the id of each field and that breaks the form.

Is there a way to prevent this?


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Are you using the Multiple Forms Action to isolate each group of fields in its own Form tag? If you don’t, Freeway’s normal behavior is to create a single form element for the entire page, and all fields will be inside of that one form. So if you submit one group of fields, you are actually submitting all of them.

As far as renaming the fields goes, you have to do that on the third tab from the left of the Inspector. You change the Name attribute there, and that will change the field name as it will be submitted to the server. Your form handler will have to be updated, then, because it has to know that email1 is different than email2 or whatever you call them. Changing the label won’t affect the form submission, but it will affect whether clicking on the label will “focus” the form field.

Walter


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options