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.

HTML issue not quite resolved

  1. I had a topic about HTML being displayed in text area fields on the front end which I fixed by disabling the cookie monster plugin.

    For some reason though the HTML from text area is still being displayed in our E-mails. We have our E-mails sent to us as plain text using this function:

    add_action("gform_notification_format", "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
    }

    The HTML wouldn't be a problem but we use web prospects to submit the data to Sages Act and it's completely breaking the format for that. Any ideas to stop this happening would be great!

    Posted 12 years ago on Thursday September 27, 2012 | Permalink
  2. OK,

    so I managed to get around this issue by manually typing out all the fields of the notification E-mails (replacing the {all fields} tag). Not sure why all fields was giving us HTML, but it's sorted our Emails out now!

    Posted 12 years ago on Thursday September 27, 2012 | Permalink
  3. David Peralty

    Glad you figured it out. I was going to ask if you were using the all fields merge tag. It will naturally insert HTML code, even if you change the e-mail type.

    Posted 12 years ago on Thursday September 27, 2012 | Permalink

This topic has been resolved and has been closed to new replies.