Delfynn
Forum Replies Created
-
Yes, I know it does’nt work, but you can make this in your file functions.php, when you want get posted_data
$your-field = str_replace(“,”,” “, $posted_data[‘your-field’]);
Hi phoenixCoder,
On your Contact Form settings you can make:
[select* your-field
“CEO|CEO <email address>, <email address>…”
“Admin|Admin <email address>, <email address>…”]So email address is hidden.
and in your file functions.php $posted_data[‘_raw_variable’] works 🙂
Thanks Mike,
But this is the code that I’m using as you can see here:
$submission = WPCF7_Submission::get_instance();
if ($submission) {
$posted_data = $submission->get_posted_data();
$codepostal = $posted_data[‘Codepostal’];
$Nomdumodele = $posted_data[‘Nomdumodele’];
$nomdelamarque = $posted_data[‘nomdelamarque’];This line: $nomdelamarque = $posted_data[‘nomdelamarque’]; display the email cause is a select like this:
[select nomdelamarque “CEO|ceo@example.com”
“Sales|sales@example.com”
“Support|support@example.com”]So I want get CEO and not the email address. And When I use this: $nomdelamarque = $posted_data[‘_raw_nomdelamarque’]; it’s don’t working.
Thank you 🙂