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.

Allow submission of html

  1. Hi, it seems Gravity Form strips out all html entered via single line form fields, and via other fields. Even hidden fields. How do I get it to keep html that's entered in a field?

    Posted 8 years ago on Monday May 21, 2012 | Permalink
  2. Hi, I just discovered information regarding "Gform allowable tags".

    I think it doesn't answer all my questions, since I don't know exactly which tags may come up.

    I'm using the Embed.ly API to allow users to enter a URL of a video or photo, convert that URL to the respective embed code and enter that embed code into a post. Right now, no embed code is being entered because Gravity Forms strips it out. Are there ways, besides specifying things like "{Your name::7}" in "create content template" in a post body, to output content to a post? I need a way that leaves HTML unchanged.

    Thanks.

    Posted 8 years ago on Monday May 21, 2012 | Permalink
  3. I found the solution. Something like:

    add_filter("gform_allowable_tags_7", "allow_basic_tags");
    function allow_basic_tags($allowable_tags){
    return true;
    }

    Posted 8 years ago on Monday May 21, 2012 | Permalink
  4. So you are good to go?

    Posted 8 years ago on Monday May 21, 2012 | Permalink

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