Hi gakenny,
The contact form (UserDefinedForm class) does not support this out of the box. What you'll need to do is subclass the UserDefinedForm class.
1. First, add this line to your _config.php file in mysite:
Object::useCustomClass('UserDefinedForm', 'CustomUserDefinedForm');
2. Create CustomUserDefinedForm.php within mysite/code
3. Start with something like this in CustomUserDefinedForm.php:
class CustomUserDefinedForm extends UserDefinedForm {
}
class CustomUserDefinedForm_Controller extends UserDefinedForm_Controller {
function process() {
// overload the function on UserDefinedForm.php like this
}
}
This should get you started. I would suggest copying the contents of the process() function from UserDefinedForm.php to where the // comment is above, and modify it so it does something different when a user submits the form.
Hope this helps!
Sean