Skip to main content
November 24, 2007
Question

CFFORM Problems

  • November 24, 2007
  • 2 replies
  • 232 views
We just upgraded to cfmx7. We are having a problem with CFFORM and text fields. When I have a form with a text field I am finding that if Ipopulate the field with a large amout of text it will not submit. For example

---------------Cold Fusion Code ----------------
<td bgColor="#StoreOptions.admincolor2#" valign="top"><cfinput name="ItemName#ID#" value="#ItemName#" size="8" class="W80"></td>
<td bgColor="#StoreOptions.admincolor2#" valign="top"><cfinput name="VariationRules#ID#" value="#VariationRules#" size="8" class="W80"></td>
<td bgColor="#StoreOptions.admincolor2#" valign="top"><cfinput name="UserInput#ID#" value="#UserInput#" size="8" class="W80"></td>
<td bgColor="#StoreOptions.admincolor2#" valign="top"><cfinput name="Weight#ID#" value="#Weight#" size="3" class="W3"></td>
<td bgColor="#StoreOptions.admincolor2#" valign="top"><cfinput name="Qty#ID#" value="#Qty#" size="3" class="W30" required="yes" message="You must specify a valid value for 'Qty'" validate="integer" maxlength="7"></td>
<td bgColor="#StoreOptions.admincolor2#" valign="top"><cfinput name="Price#ID#" value="#Trim("#NumberFormat(Price, "#CurrencyList.mask#")#")#" size="5" class="W45" required="yes" message="You must enter a valid numeric value for 'Price'" validate="float"></td>
----------------------------------

This code was inside of a cfloop processing 1 - 3 records in a resultset. With one record the submit worked fine. When the query returns two records the submit does not work. I later found that with one record if I populate one or more of the fields with a large amout of text that the submit fails. On multiple records if I clear the text fields the submit works as well.

Any ideas this was working code in CFMX 6.1 and is now broken in 7.02 . It does not seem to be related to a form validation problem since I have tested without the calls to _CF_checkOrderForm(_CF_this) -->>OrderForm is the name of the Form - BTW - I am testing with IE6 FireFox seems to work OK.

This topic has been closed for replies.

2 replies

November 25, 2007
Ken,

I submitted an example a few threads up. When you press submit it validates the form but does not call the action=script defined in the form. I do not get an error. The validation does not get an error either. It just returns back to the form . See my example above. It may be a browser problem but it worked under 6.1. I am trying to find a way around this or a fix ....

Jeff
Inspiring
November 25, 2007
What do you mean by "it will not submit"

Are you getting an error?

If you are getting an error, what is the exact error?

--
Ken Ford
Adobe Community Expert - Dreamweaver
Fordwebs, LLC
http://www.fordwebs.com


"WaveRunr" <webforumsuser@macromedia.com> wrote in message news:fi9iij$nhv$1@forums.macromedia.com...
> We just upgraded to cfmx7. We are having a problem with CFFORM and text fields.
> When I have a form with a text field I am finding that if Ipopulate the field
> with a large amout of text it will not submit. For example
>
> ---------------Cold Fusion Code ----------------
> <td bgColor="#StoreOptions.admincolor2#" valign="top"><cfinput
> name="ItemName#ID#" value="#ItemName#" size="8" class="W80"></td>
> <td bgColor="#StoreOptions.admincolor2#" valign="top"><cfinput
> name="VariationRules#ID#" value="#VariationRules#" size="8" class="W80"></td>
> <td bgColor="#StoreOptions.admincolor2#" valign="top"><cfinput
> name="UserInput#ID#" value="#UserInput#" size="8" class="W80"></td>
> <td bgColor="#StoreOptions.admincolor2#" valign="top"><cfinput
> name="Weight#ID#" value="#Weight#" size="3" class="W3"></td>
> <td bgColor="#StoreOptions.admincolor2#" valign="top"><cfinput
> name="Qty#ID#" value="#Qty#" size="3" class="W30" required="yes" message="You
> must specify a valid value for 'Qty'" validate="integer" maxlength="7"></td>
> <td bgColor="#StoreOptions.admincolor2#" valign="top"><cfinput
> name="Price#ID#" value="#Trim("#NumberFormat(Price, "#CurrencyList.mask#")#")#"
> size="5" class="W45" required="yes" message="You must enter a valid numeric
> value for 'Price'" validate="float"></td>
> ----------------------------------
>
> This code was inside of a cfloop processing 1 - 3 records in a resultset. With
> one record the submit worked fine. When the query returns two records the
> submit does not work. I later found that with one record if I populate one or
> more of the fields with a large amout of text that the submit fails. On
> multiple records if I clear the text fields the submit works as well.
>
> Any ideas this was working code in CFMX 6.1 and is now broken in 7.02 . It
> does not seem to be related to a form validation problem since I have tested
> without the calls to _CF_checkOrderForm(_CF_this) -->>OrderForm is the name of
> the Form
>
>
>