<?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: Validate a coupon and/or discount code</title>
		<link>https://legacy.forums.gravityhelp.com/topic/validate-a-coupon-andor-discount-code</link>
		<description>Gravity Support Forums Topic: Validate a coupon and/or discount code</description>
		<language>en-US</language>
		<pubDate>Thu, 16 Apr 2026 22:26:44 +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/validate-a-coupon-andor-discount-code" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Validate a coupon and/or discount code"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/validate-a-coupon-andor-discount-code#post-76931</link>
			<pubDate>Sun, 23 Sep 2012 00:59:35 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">76931@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;OK, so it's a secret code to get the discount, and the code is always the same, and anyone entering it gets the discount.  Is that correct?&#60;/p&#62;
&#60;p&#62;You want to use the gform_validation hook:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_validation&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_validation&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;You will compare the value input by the visitor to the value you hard code into your function.  If there is a match, you don't return a validation error (i.e. the code was correct.)  If the code does not match, you return a validation error.&#60;/p&#62;
&#60;p&#62;Give that a try and let us know how it goes.  If you get stuck, be sure to post the URL to your form, and the code you are using for validation.  Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tinuzzo on "Validate a coupon and/or discount code"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/validate-a-coupon-andor-discount-code#post-76872</link>
			<pubDate>Sat, 22 Sep 2012 08:17:00 +0000</pubDate>
			<dc:creator>tinuzzo</dc:creator>
			<guid isPermaLink="false">76872@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris, I am trying to use the new Facebook Offers.&#60;br /&#62;
I need to enter the URL where the coupon can be redeemed (my signup gravity form) and Facebook fans coming from the offer will need to enter the coupon and have the discount applied to their final checkout amount. So there's just one coupon code, that should be valid for anyone knowing it.&#60;/p&#62;
&#60;p&#62;This is the screenshot of the 2 fields I have to enter: &#60;a href=&#34;http://i48.tinypic.com/2hd1nwi.jpg&#34; rel=&#34;nofollow&#34;&#62;http://i48.tinypic.com/2hd1nwi.jpg&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I use cart66 for processing and a gravity form for gathering the info.&#60;/p&#62;
&#60;p&#62;How can I do this right?&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Validate a coupon and/or discount code"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/validate-a-coupon-andor-discount-code#post-76842</link>
			<pubDate>Sat, 22 Sep 2012 01:15:50 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">76842@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@tinuzzo, exactly what are you trying to do?  We have code to match a number from a database or a number from a list in a text file.  Or, if you have just a few numbers, they can be added to your function directly.  We need to know exactly what you want to do.  Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tinuzzo on "Validate a coupon and/or discount code"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/validate-a-coupon-andor-discount-code#post-76752</link>
			<pubDate>Fri, 21 Sep 2012 18:14:55 +0000</pubDate>
			<dc:creator>tinuzzo</dc:creator>
			<guid isPermaLink="false">76752@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I want to know the same, can you please reply?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jainlv on "Validate a coupon and/or discount code"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/validate-a-coupon-andor-discount-code#post-54031</link>
			<pubDate>Mon, 02 Apr 2012 19:12:03 +0000</pubDate>
			<dc:creator>jainlv</dc:creator>
			<guid isPermaLink="false">54031@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have a WP blog that uses Gravity Forms with the PayPal plugin to perform a registration with payment for an event.&#60;/p&#62;
&#60;p&#62;We are doing to have a database of several hundred coupon codes (think Groupon).  I want to have the registrant enter the coupon code and have it be verified against our database in order to provide them with the price associated with the code and have that price show up in their 'total' field.  This same functionality would apply if they entered a 'group' code (for select groups that we are working with).&#60;/p&#62;
&#60;p&#62;Date would be in this format:&#60;br /&#62;
Price - Code&#60;br /&#62;
$55 - KidsGroup&#60;br /&#62;
$65 - ChurchGroup&#60;br /&#62;
$55 - 3883004823984&#60;br /&#62;
$55 - 3994829284829&#60;br /&#62;
$55 - 3699885702028&#60;br /&#62;
...&#60;br /&#62;
We would need the system to check the group/code number and then feed back the price so that the total field shows the correct price.&#60;/p&#62;
&#60;p&#62;I tried to search the support forums thoroughly before posting this, so I apologize if it is a duplicate.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
