Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a limit to the number of form fields you can submit?

Tags:

coldfusion

I have a rather long form (1000 checkboxes) that the customer goes through to order. But I get the following error when it goes over a certain limit (100 items):

Failed to add HTML header.ColdFusion was unable to add the header you specified to the output stream. This is probably because you have already used a cfflush tag in your template or buffered output is turned off

Q: Is that an IIS setting or a ColdFusion administrator setting?

I did some research before posting this question, and it doesn't have to do with AJAX and debug settings. All debug settings are turned off and I get the error on form submit.

like image 830
Phillip Senn Avatar asked Dec 19 '12 17:12

Phillip Senn


People also ask

How many fields can you have in a form?

You can put as many as you like. However, if you have a lot of fields in your form (like more than 100), then the loading times might get affected.

Can you limit the number of submissions on Jotform?

A limit can be placed on the number of submissions a form receives. An expiration date can also be set for the form.


2 Answers

Does your form POST or GET? If it's a GET you may be maxing out the URL length limit. If it's a POST, then you are probably running into the limit in CF on the number of form fields. This article details how to modify the value.

You may want to consider other ways of sending that data to the server. Perhaps using jQuery to serialise the form and send the JSON as a single parameter?

like image 185
barnyr Avatar answered Jan 03 '23 19:01

barnyr


Sounds very similar to an error we had after moving a site with a large number of fields to a new environment. our error read a bit different but you could be getting a different error depending on what you're doing.

500

ROOT CAUSE: coldfusion.filter.FormScope$PostParametersLimitExceededException: POST parameters exceeds the maximum limit specified in the server.

There is a coldfusion setting in your runtime.xml file you could try changing or removing:

<var name='postParametersLimit'><number>100.0</number></var>
like image 36
genericHCU Avatar answered Jan 03 '23 17:01

genericHCU