In migrating from flash forms for CF11 upgrade, I'm getting the following error on a large form submission

New Here ,
Jul 02, 2015 Jul 02, 2015

Copy link to clipboard

Copied

"Error validating html input.Invalid HTML input. Error=The input was too large. The specified input was 5,040 bytes and the maximum is 5,000 bytes.

I don't see a setting to change this in the CF admin?  Please advise.

Views

342

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 11, 2015 Sep 11, 2015

Copy link to clipboard

Copied

I'm getting this also. Anyone know how to change the limit or of a work around?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 11, 2015 Sep 11, 2015

Copy link to clipboard

Copied

I believe replacing with jquery fixed it. 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 11, 2015 Sep 11, 2015

Copy link to clipboard

Copied

Interesting.

All I'm doing is passing a giant list of emails in form.

<cfinput type="hidden" name="to" value="#trim(thesepeople)#">

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Sep 15, 2015 Sep 15, 2015

Copy link to clipboard

Copied

impalerware wrote:

Interesting.

All I'm doing is passing a giant list of emails in form.

<cfinput type="hidden" name="to" value="#trim(thesepeople)#">

It might help to add the validation tag,

<cfinput type="hidden"

        name="to_cfformmaxlength"

        value="50000">

This says that the to field may have up to 50 000 characters. That comes up to about 50 kilobytes. However, the jQuery suggestion remains good.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 15, 2015 Sep 15, 2015

Copy link to clipboard

Copied

LATEST

I actually fixed it by changing the cfform to regular form and cfinput to regular input.

Removing the type=hidden seems to also fix it.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Sep 15, 2015 Sep 15, 2015

Copy link to clipboard

Copied

stanc76870477 wrote:

I believe replacing with jquery fixed it.

I will, like many, agree with your suggestion to use the jQuery equivalent in place of ColdFusion's native user-interface tags, cfform, cfgrid, cflayout, and so on. Thanks for sharing that. Please mark it as the correct answer.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 15, 2015 Sep 15, 2015

Copy link to clipboard

Copied

Got the same error in CF11. Seems, query is too big. I'm passing list of IDs to it, which is quite long. How can it be fixed?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Sep 15, 2015 Sep 15, 2015

Copy link to clipboard

Copied

stanc76870477 wrote:

"Error validating html input.Invalid HTML input. Error=The input was too large. The specified input was 5,040 bytes and the maximum is 5,000 bytes.

I don't see a setting to change this in the CF admin?  Please advise.

It may not be the cause but, just for information, there is a setting for form submission in the Coldfusion Administrator. It is in the page, Server Settings => Settings.

max_post.png

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines