Avatar of lantervj
lantervj
Flag 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

8/22/2022 - Mon
gdemaria


Did you have a question?
gdemaria


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
gdemaria

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
lantervj

ASKER
Once again, I should have caught that.  Many thanks.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes