<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: User notifications with fields containing html tags</title>
		<link>https://legacy.forums.gravityhelp.com/topic/user-notifications-with-fields-containing-html-tags</link>
		<description>Gravity Support Forums Topic: User notifications with fields containing html tags</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 19:06:12 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/user-notifications-with-fields-containing-html-tags" rel="self" type="application/rss+xml" />

		<item>
			<title>Oliver Chank on "User notifications with fields containing html tags"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/user-notifications-with-fields-containing-html-tags#post-28057</link>
			<pubDate>Fri, 17 Jun 2011 16:31:38 +0000</pubDate>
			<dc:creator>Oliver Chank</dc:creator>
			<guid isPermaLink="false">28057@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;That worked like a charm!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "User notifications with fields containing html tags"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/user-notifications-with-fields-containing-html-tags#post-28052</link>
			<pubDate>Fri, 17 Jun 2011 15:56:54 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">28052@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I thought of a way to trick the system.&#60;br /&#62;
Use the post body field (which allows HTML) instead of a regular paragraph field. Then use a hook to disable the post creation. Make sure to remove the htmlentities() from your code.&#60;br /&#62;
Disable the post creation with the following code snippet. Make sure to replace &#34;5&#34; below with your actual form ID.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_disable_post_creation_5&#38;quot;, &#38;quot;disable_post_creation&#38;quot;, 10, 3);
function disable_post_creation($is_disabled, $form, $entry){
    return true;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Oliver Chank on "User notifications with fields containing html tags"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/user-notifications-with-fields-containing-html-tags#post-28026</link>
			<pubDate>Fri, 17 Jun 2011 13:12:36 +0000</pubDate>
			<dc:creator>Oliver Chank</dc:creator>
			<guid isPermaLink="false">28026@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ultimately, I don't need to store these coupon links with the entry, just the coupon codes. The latter works just fine with a paragraph text field populated without formatting ($eachcoupon[]).&#60;/p&#62;
&#60;p&#62;Right now I have this other paragraph field holding the same coupons as absolute links ($eachcouponurl[]), as I couldn't figure out another way of inserting them in the email notifications.&#60;/p&#62;
&#60;p&#62;If there was a single field for every coupon, formatting the email would be really easy from the notifications panel. The problem really comes when having to generate a varying number of coupons codes...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "User notifications with fields containing html tags"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/user-notifications-with-fields-containing-html-tags#post-28022</link>
			<pubDate>Fri, 17 Jun 2011 12:45:31 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">28022@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Do you need to store these with the entry, or do you just need to send them out in the email?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Oliver Chank on "User notifications with fields containing html tags"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/user-notifications-with-fields-containing-html-tags#post-28007</link>
			<pubDate>Fri, 17 Jun 2011 09:30:00 +0000</pubDate>
			<dc:creator>Oliver Chank</dc:creator>
			<guid isPermaLink="false">28007@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you Carl,&#60;br /&#62;
I can post more code or information if needed :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "User notifications with fields containing html tags"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/user-notifications-with-fields-containing-html-tags#post-27993</link>
			<pubDate>Fri, 17 Jun 2011 00:55:44 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">27993@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have forwarded this post to our lead developer who will take a look and get back with you sometime tomorrow (Friday).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Oliver Chank on "User notifications with fields containing html tags"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/user-notifications-with-fields-containing-html-tags#post-27988</link>
			<pubDate>Thu, 16 Jun 2011 21:53:24 +0000</pubDate>
			<dc:creator>Oliver Chank</dc:creator>
			<guid isPermaLink="false">27988@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi!&#60;/p&#62;
&#60;p&#62;My form needs to generate a number of unique coupon codes depending on the product quantity. Then, the coupons are emailed to the user as absolute links for him to print or share.&#60;/p&#62;
&#60;p&#62;I have managed to populate a paragraph text field using gform_pre_submission to hold the coupon codes in absolute links. However, in order to have my &#38;lt; a &#38;gt; tags register as entries, I used htmlentities() on every string:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;foreach ($qte_array as $coupon) {

    	$s = strtoupper(md5(uniqid(rand(),true)));

		$string = $coupon . &#38;#39;-&#38;#39; . substr($s,0,6) . &#38;#39;-&#38;#39; . substr($s,8,4);

		$eachcoupon[] = $string;

		$url_string = &#38;quot;&#38;lt;a href=\&#38;quot;http://www.domain.com/coupon.php?offre=&#38;quot; . $id . &#38;quot;&#38;amp;achat=&#38;quot; . $achat . &#38;quot;&#38;amp;coupon=&#38;quot; . $string . &#38;quot;\&#38;quot; target=\&#38;quot;_blank\&#38;quot;&#38;gt;Coupon &#38;quot; . $coupon . &#38;quot;&#38;lt;/a&#38;gt;&#38;lt;br /&#38;gt;&#38;quot;;

		$eachcouponurl[] = htmlentities($url_string);

	}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Now the problem is that when I email this paragraph text field, it's not HTML anymore... :-(&#60;/p&#62;
&#60;p&#62;Is there a way to run some sort of html_entity_decode() to my entry, or did I take this the wrong way?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
