There is more than one way to do this, and the question is rather broad, but
on the action page do a routine that checks checks to see if there is a
duplicate value first. If there is, stop processing and ask the user if they
want to continue. The page that asks the user if they want to continue,
should have hidden input fields with all of the values from the form. If
they choose to continue, submit the form to your action page and process the
form. If they choose not to continue, you have all of the form fields there
to show whatever info you need.

hth
jon
----- Original Message -----
From: "Richard Colman" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Sunday, April 29, 2001 12:24 AM
Subject: Continue processing form based on user input


> Can someone suggest the best approach to "cancel or continue with" form
> processing based on user input?
>
> The scenario is:
>
> -form submitted
> -possible duplicate record detected in "action" poage
> -ask user whether to proceed with processing
> --if user says "yes" then continue processing form variables in the
"action"
> page
> --if user says "no" cancel form processing and throw up an information
> screen.
>
> I have been playing around with several Javascript approaches to doing
this,
> but I don't now JS all that well. Is there a CF way to do it, keeping in
> mind that I need to maintain my form variables if the user wishes to
> proceed.
>
> Can someone suggest a good approach, CF or otherwise, to this problem?
>
> TNX.
>
> Rick Colman.
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to