PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Plaintext showing break tags in the Paragraph Text Field

  1. smillerci
    Member

    I'm using this Gform notification format found in the documentation to send plain text to the admin user. However break tags <br /> are showing up if the user enters a hard return. Is there a way to strip out the break tags?

    // Set form to send plain text to admin
    add_action("gform_notification_format_1", "set_notification_format", 10, 4);
    function set_notification_format($format, $notification_type, $form, $lead){
    
        if($notification_type == "admin")
            return "text"; //setting admin notifications as text
        else
            return "html"; //setting user notifications as text
    }
    Posted 12 years ago on Monday March 12, 2012 | Permalink
  2. yep, try checking the "disable auto formatting" option in the notification settings. That's what adds the break tags to the messages for you.

    screenshot: http://bit.ly/xf2ZlF

    Posted 12 years ago on Monday March 12, 2012 | Permalink
  3. smillerci
    Member

    Thanks for the quick response, I do have that checked.

    Posted 12 years ago on Monday March 12, 2012 | Permalink
  4. Okay, we'll check it out and get back to you. Thanks.

    Posted 12 years ago on Monday March 12, 2012 | Permalink
  5. smillerci
    Member

    Did you have a chance to further investigate this issue?

    Posted 12 years ago on Wednesday March 21, 2012 | Permalink