Tagged: checkbox, CONTACT FORM
Hi, I’ve read that topic called “autoresponder choice” that was closed.
The girl who opened it was complaining that she would get “true” in her e-mails whenever her checkboxes were, well… checked. :)
The same thing is happening to me. I tried following your advice on that last one and changed the line in class-form-generator.php, but when I changed that line, all the information I’d get in my e-mails was that “my text” bit.
Like:
Name: my text
E-mail: my text
Fone: my text
Message: my text
(checkbox text): my text
What I need is for that “true” to turn into a “yes”. That’s it! Any help would be highly appreciated. Thanks!
Previous topics (that was closed): https://kriesi.at/support/topic/autoresponder-choice/
Hi Thur_Jack!
Please try to change the code a bit. Instead of
if( $new_post[$key] == true || $new_post[$key] == 'true' ) $new_post[$key] = 'my text';
try to use
if($new_post[$key] == 'true' ) $new_post[$key] = 'my text';
Regards,
Peter
Thanks for the response. I didn’t have time to check if it worked yet, but I’ll let you know in the (near) future.
I appreciate the help.