I've been trying to figure out a way to use only two pages
to accomplish what you want with ColdFusion only, but I'm
not getting anywhere.

What does come to mind and seems workable, is to divide your
form and processing into three pages:

1) Ask the personal questions that might carry over to the
   business part on the first form. Have two buttons that
   both submit to the same page, page 2, but with different
   values.  Call them "yes" and "no".

2) On page two, you have the same form field as page one,
   but will also add the business info form fields that might
   be the same.  You'll populate the fields from page one
   with the values that were entered. And, if the user clicked
   the "yes" button on the first page, you'll populate the
   duplicate business fields with the matching personal data.
   You'll also have any other fields that you need completed
   in this form. You'll have only one submit button on this
   page that submits to "client_input.cfm".

3) On client_input.cfm you'll do your processing.

That's the only way I could think of quickly to make this
happen and completely avoid Javascript and stick to ColdFusion.

I've never actually tried this approach, but I don't see why
it wouldn't work.

Perhaps someone else has a more elegent, "CF-only", solution.

Rick



-----Original Message-----
From: B Griffith [mailto:[email protected]] 
Sent: Wednesday, January 16, 2013 2:45 PM
To: cf-newbie
Subject: Re: Checkbox/Radio Button integration into CF8 code-block


Rick, 

I regrettably must admit I am familiar with neither of those 
technologies/languages (AJAX and jQuery).  I am
hoping there is a way to do this in ColdFusion because that is really the only 
development language I am
familiar with (and I'm a newb to CF, at that).

I'm certain there is some sort of problem with my logic, but I can't figure out 
where it is...perhaps someone
might point it out to me?  I've tried using <cfif !IsDefined...
also but to no avail.

Thanks for the help, folks.  Looking forward to your replies. 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:6029
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm

Reply via email to