Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #173820

    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/

    #174099

    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

    #179952

    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.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘About that "autoresponder choice" topic – keep getting "true" with checkboxes’ is closed to new replies.