V - So here is what I ended up doing.
1 - Create an e-mail field called hidden
2 - Go to advanced and give it a class name of hidden
3 - Use the merge tag for this e-mail field in the notification section (admin or user).
4 - Create a css class in my style.css
.hidden {
display: none;
}
5 - In my functions.php file I did the following:
add_action("gform_pre_submission_3", "pre_submission_handler");
function pre_submission_handler($form){
$_POST["input_12"] = $_POST["input_11"] ."@gmail.com";
}
You will want to change the _3 and the input numbers with the field id's that make sense to you. You'll also want to change the e-mail address to @smssender.com
So what I've done is create a hidden field that will be used for the e-mail. This field gets populated on submit with the value of another field and merged with the rest of the e-mail address I want.
Then this full e-mail address gets sent to our notification system and then WordPress sends out the e-mail for us to the fully realized e-mail address.
Hope this helps, and sorry about losing you there for a bit.
Posted 12 years ago on Friday June 22, 2012 |
Permalink