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.

Allowing specific HTML markup in a User submited field

  1. SYNOPSIS:
    I'm attempting to wrap data being passed to a dynamic hidden field with <li> ... </li> tags, but these tags keep getting stripped (rightfully so) by Gravity forms. How to allow just these tags?

    IN DETAIL:
    Essentially, in my functions.php file, I am storing pages the user visited in a sessions array and passing this data to a dynamic hidden field in Gravity Forms so that it can be sent along with the notification email sent to the administrator.

    I want to wrap each of these fields with <li> </li> to insure proper formatting in the notification.

    The email (in short) is formatted as:

      {Browsed:1}

    Where the browsed value you would have the list tags.

    ...suggestions?

    Posted 12 years ago on Friday September 9, 2011 | Permalink
  2. Joost de Valk has already created an add-on for this which adds the users "trail" to the notification email. You can download it here: http://cdn.yoast.com/downloads/gravity-forms-referrer.zip

    It doesn't store the trail with the entry data, it only adds it to the notification.

    User tracking and referrer information is a feature we plan on adding in Gravity Forms v1.7.

    Posted 12 years ago on Friday September 9, 2011 | Permalink
  3. Thank you for the response,

    Yes--I am actually aware of the plugin to which you were referring. The referrer data is just one example and was perhaps miss-leading. I am also sending additional dynamic data (approx 6 or 7 other fields) and have already written the hooks to include this as appropriate.

    My question was more directly related to formatting then the need for a plugin.

    Is it possible to have "allowed markup" for specific fields and if so, how? I am trying to accomplish essentially the same thing that RocketGenius is performing in this very "Leave a Reply" box.

    Best.

    Posted 12 years ago on Tuesday September 13, 2011 | Permalink
  4. I'm going to bring this thread to the attention of one of our developers to see if he has any suggestions on how you could accomplish this.

    Posted 12 years ago on Tuesday September 13, 2011 | Permalink
  5. Just sent you an email. New hook has been added to support this with version 1.6.beta2.6.

    Documentation: http://www.gravityhelp.com/documentation/page/Gform_allowable_tags

    Posted 12 years ago on Wednesday September 14, 2011 | Permalink

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