Skip to main content
Participating Frequently
March 24, 2007
Question

How many fields can I have in cfform flash format?

  • March 24, 2007
  • 5 replies
  • 1876 views
Hi there,

Does any one know if there are any limitation of how many input fields you can have in one cfform? I have a project where I put fields for Companies, Contacts, Empployees, all in one cfform (flash format). when I put the next one, I think 100 or 103, it did not display the form. I though it is some thing wrong with that input field, I then take out other field, the form loaded with new field I just insert.

Any idea?

AuroraCF.
    This topic has been closed for replies.

    5 replies

    Participating Frequently
    April 2, 2007
    there are about 13 fields in the form. the whole .cfm file is about 52 lines of code.
    Inspiring
    April 2, 2007
    If you only have 13 fields and 52 lines of code, then I would suggest that you do have an actual error in the code.

    can you post the 52 lines ?

    Ken
    Participating Frequently
    April 2, 2007
    <cfquery name="getphoneType" datasource="sip_provision">
    select * from phonetype_table
    order by phonetype_desc
    </cfquery>
    <cfquery name="getUser" datasource="sip_provision">
    select * from phoneusers_table
    order by phoneusers_loginName
    </cfquery>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns=" http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <title>SIP Phone Provisioning System</title>
    </head>
    <body>
    <cfform format="flash" preloader="yes" height="400" width="525">
    <cfformgroup type="tabnavigator">
    <cfformgroup type="page" label="Misc Info" height="200">
    <cfselect name="provision_phonetype" label="Phone Type:"> <cfoutput query="getphoneType">
    <option value="#getphoneType.phonetype_id#">#getphoneType.phonetype_desc#</option>
    </cfoutput> </cfselect>
    <cfinput type="text" name="phone_label" size="10" maxlength="10" label="Phone Label:">
    <cfinput type="text" name="phone_password" size="10" maxlength="10" label="Phone Password:">
    <cfinput type="text" name="services_url" size="100" maxlength="100" label="Services URL:">
    <cfinput type="text" name="directory_url" size="100" maxlength="100" label="Directory URL:">
    <cfinput type="text" name="logo_url" size="100" maxlength="100" label="Logo URL:">
    <cfselect name="phone_user" label="Phone User:">
    <option value="">Select User</option>
    <cfoutput query="getUser">
    <option value="#getUser.phoneusers_id#">#getUser.phoneusers_loginName#</option>
    </cfoutput> </cfselect>
    <cfinput type="text" name="provision_macaddress" size="12" maxlength="12" style="textStyle" label="Phone MAC Address:">
    </cfformgroup>
    </cfformgroup>
    <cfformgroup type="tabnavigator">
    <cfformgroup type="page" label="Line 1" height="200">
    <cfinput type="text" name="line1_name" size="5" maxlength="5" label="Line 1 Name:">
    <cfinput type="text" name="line1_authname" size="5" maxlength="5" label="Line 1 AuthName:">
    <cfinput type="text" name="line1_password" size="10" maxlength="10" label="Line 1 Password:">
    <cfinput type="text" name="line1_displayname" size="20" maxlength="20" label="Line 1 Display Name:">
    </cfformgroup>
    </cfformgroup>
    <cfformgroup type="tabnavigator">
    <cfformgroup type="page" label="Line 2" height="200">
    <cfinput type="text" name="line2_name" size="5" maxlength="5" label="Line 2 Name:">
    <cfinput type="text" name="line2_authname" size="5" maxlength="5" label="Line 2 AuthName:">
    <cfinput type="text" name="line2_password" size="10" maxlength="10" label="Line 2 Password:">
    <cfinput type="text" name="line2_displayname" size="20" maxlength="20" label="Line 2 Display Name:">
    </cfformgroup>
    </cfformgroup>
    <cfinput type="submit" value="Provision" name="btnsubmit">
    <cfinput type="reset" value="Clear Form" name="btnreset">
    </cfform>
    </body>
    </html>
    Participating Frequently
    April 2, 2007
    that's the problem, there really is no other info. i have one other line in the cfserver.log

    04/02 11:20:41 ERROR flex.compiler.HtmlFragmentOutputHandler: Results of compiling /Library/WebServer/Documents/sipProvision/provision2.cfm
    Participating Frequently
    March 26, 2007
    03/26 19:42:02 ERROR flex.compiler.HtmlFragmentOutputHandler: Results of compiling /Library/WebServer/Documents/sipProvision/provision2.cfm
    1 Error found.
    Error /Library/WebServer/Documents/sipProvision/provision2.cfm:264
    : expected.

    Inspiring
    March 26, 2007
    The error indicates that there should be a colon around line 264

    Can you post 2 or 3 lines both sides of line 264 ?

    Ken
    Inspiring
    March 26, 2007
    As far as I know there is no limit on the form elements, but there is a size limit on cfform.

    I would suggest going to the admin panel and ensuring that the flash debugging is turned on in the debuggin section.
    This will then give you error information about flash form errors.

    If you don't have access to the server admin, I would suggest downloading the developer version to your pc and testing your pages there first, this will then allow you to get debugging errors.

    Ken
    Participating Frequently
    March 26, 2007
    i am actually experiencing a problem with flash forms as well. when i have a lot of fields in a form, it errors out with a java error. off hand i am not sure what the error is as i do not have access to my cf server remotely. I am running Coldfusion MX 7 on Mac OS X 10.3.

    anyone else getting java errors when using flash forms?
    AuroraCFAuthor
    Participating Frequently
    March 26, 2007
    uhh...I didn't get any respond from ppl, so I split my form to 1 module 1 form. It is anoying to wait for form to load, but it will get the job done.

    What java error do you get? pay attention to naming your fields. I think it is case sensitive too.

    AuroraCF.