Try our conversational search powered by Generative AI!

Multiple XForms on same page

Vote:
 

Is it possible to have more than one xform on a page?

Tried adding a second but the submit button on the second form caused submittion of the first form.
If it is possible to use two xforms on same page, how do you do it?

#47274
Jan 21, 2011 12:48
Vote:
 

You could add a asp:button control and handle the onclick event. Save the data to the correct x-form.... Not a nice way to do it, but it should work 

#47401
Jan 27, 2011 10:51
Vote:
 

2 forms could also work...

#47403
Jan 27, 2011 12:25
Vote:
 

But I have the form-tag on the masterpage

#47433
Jan 28, 2011 7:58
Vote:
 

Try refactoring your design using a nested masterpage to hold the XForms control.  Additionally - has anyone actually produced Page Templates that contain more than a single XForm instance?  How did you handle this issue with your design (assuming you did)? 

#49362
Mar 14, 2011 18:43
Vote:
 

No we never solved this issue, we informed the client of it and they are aware that they should only use one form per page.

Nestling could solve it but that also depends on how the page-layout is set up.

Yes, would be very interesting to hear about someone how has had more than one Xform on a singel page.

#49365
Edited, Mar 15, 2011 8:05
Vote:
 

Hi!

It shouldn't be a problem hosting multiple XForms on a page. Just make sure that you have different validation groups for the different forms. There is currently a bug in the global xforms events in the CMS 6 public templates that always sets the validation group to the same value but that's easily fixed since it's in the templates.

Regards
Linus Ekström
EPiServer Development Team

#49377
Mar 15, 2011 20:13
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.