Avatar of lantervj
lantervjFlag for United States of America

asked on 

multiple/nested cfforms

I have a cfform that has multiple cfdivs that contain cfforms so I can use cfselects. when the page is submitted not all the form elements are passed.
on the main page;
<cfdiv bind="url:/control/sitewide/cfms/DspDivSelectContacts.cfm?acronym=#QContactTypes.contact_type_acronym#&compid={SelectedCompanyId@change}" 
			id="div_#QContactTypes.contact_type_acronym#" 
							bindonload="false" />


The div;
<cfset attributes.suppresslayout2 = "true" />
<cfparam name="url.compid" default="" />
<!--- <cfdump var="#url#" /> --->
<cfif url.compid NEQ "">
<cfform name="SelectForm#url.acronym#">			
<cfinvoke component="sitewidecfc.services" method="getcontactListForSelect" compid="#url.compid#" 
specialty="#url.acronym#" returnvariable="QContactsList" />
<cfselect name="#url.acronym#">
	<cfloop query="QContactsList">
	<cfoutput>
	<option value="#id#" 
	<cfif QContactsList.id eq 0>
	   selected 
	</cfif>
	>#contactname#</option> 
	</cfoutput>
	</cfloop>
	</cfselect>
	</cfform>
</cfif>

Open in new window

ColdFusion Language

Avatar of undefined
Last Comment
lantervj
Avatar of gdemaria
gdemaria
Flag of United States of America image


Did you have a question?
Avatar of gdemaria
gdemaria
Flag of United States of America image


You really cannot nest forms, you can either duplicate some fields into several different forms, or you need to have all fields under one form.
ASKER CERTIFIED SOLUTION
Avatar of gdemaria
gdemaria
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of lantervj
lantervj
Flag of United States of America image

ASKER

Once again, I should have caught that.  Many thanks.
ColdFusion Language
ColdFusion Language

ColdFusion is a server-side rapid application development platform originally created by Allaire and now sold by Adobe, implementing the dynamic general purpose CFML programming language. The term ColdFusion is sometimes colloquially used to refer to the CFML language (Cold Fusion Markup Language), but can also include discussions of the server software implementation. ColdFusion runs using a customised version of Apache Tomcat. Earlier versions are bundled with JRun.

11K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo