all groups > coldfusion flash integration > august 2006 >
You're in the

coldfusion flash integration

group:

Want to output confirmation message in cfform


Want to output confirmation message in cfform infa
8/17/2006 12:00:00 AM
coldfusion flash integration:
Hello, I'm building my first application using CF. I have a members area where
I'm using the cfform to allow the members to send emails to anyone. After the
user submits the form, I want a confirmation message to display within the
cfform somewhere. Is this possible? If so your knowledge would benefit me
greatley.

Thanks

Rob.:grin;
Re: Want to output confirmation message in cfform Nick Watson
8/18/2006 12:08:18 AM
Try something like this

<cfform.....
<cfformitem type="script">
function doubleCheck(){
alert("Are you sure you want to send this email", "Send Email",
mx.controls.Alert.OK | mx.controls.Alert.CANCEL, confirm);
}
function confirm(evt) {
if (evt.detail == mx.controls.Alert.OK) {
_root.submitForm();
}
}
</cfformitem>
<cfinput type="button" name="btmSendMail" value="Send Email"
onClick="doubleCheck()">
</cfform>
Re: Want to output confirmation message in cfform mistainfa
8/18/2006 3:33:15 PM
Thanks Nick, I'll give this a try when I get home.

Thanxxxxxx

AddThis Social Bookmark Button