Developer forum

Forum » CMS - Standard features » Problem with multiple forms on the same page

Problem with multiple forms on the same page

Anders Ebdrup
Reply

Hi DW,

 

I have a problem having multiple form paragraphs on the same page, which uses the same form as the id of the form and the javascript name is created by using the formId and not the paragraph Id.

 

So now I have multiple forms starting with:


<form onsubmit="return FormCheck11();" action="http://www.domain.com/Admin/Public/404.aspx" enctype="multipart/form-data" method="post" id="postform11" class="postform">

 

And mulitple javascript functions called "FormCheck11", so I would be very nice to have this behaviour changed to use the paragraph Id to create the id of the form and the related javascript validation.

 

Best regards, Anders


Replies

 
Anders Ebdrup
Reply

Hi Dw,

 

We still have a lot of problems caused by this. Can it be fixed?

 

Best regards, Anders

 
Nicolai Høeg Pedersen
Reply

Hi Anders

Both this forms module and the Forms for editors module does not like the same form to be rendered on the same page. You can have 2 different forms though.

Using forms for editors (which is compatible with the 'old' forms) allows you to change the form template - in there you can give the form a more unique ID.

We cannot change that behavior in the current implementations since a trillion forms relies on those IDs.

BR Nicolai

 

You must be logged in to post in the forum