<?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: Comparing between two fields in conditional logic?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/comparing-between-two-fields-in-conditional-logic</link>
		<description>Gravity Support Forums Topic: Comparing between two fields in conditional logic?</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 11:53:47 +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/comparing-between-two-fields-in-conditional-logic" rel="self" type="application/rss+xml" />

		<item>
			<title>aabz-imaging on "Comparing between two fields in conditional logic?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/comparing-between-two-fields-in-conditional-logic#post-70790</link>
			<pubDate>Mon, 13 Aug 2012 02:59:26 +0000</pubDate>
			<dc:creator>aabz-imaging</dc:creator>
			<guid isPermaLink="false">70790@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Carl, my query goes into the same direction, but I am no where near as knowledgeable as Gaslight when it comes to programming.&#60;br /&#62;
I need the form to display an alert that the selected dates (check-in &#38;amp; check-out) in the two date fields are outside the season and that a different date needs to be selected.&#60;br /&#62;
I've created two normal date fields and two hidden fields, which get populated dynamically with the data from these fields once the person fills them in (I assume this this is possible?). No I am trying to trigger conditional logic to display and HTML Block with the message.&#60;br /&#62;
The date fields are set to dd/mm/yyyy - how do I set the conditional logic to trigger for a date entered before 01st of April and after 15th July? Or am I on the wrong track here??
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Gaslight on "Comparing between two fields in conditional logic?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/comparing-between-two-fields-in-conditional-logic#post-50140</link>
			<pubDate>Tue, 21 Feb 2012 17:30:39 +0000</pubDate>
			<dc:creator>Gaslight</dc:creator>
			<guid isPermaLink="false">50140@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;awesome! :)&#60;/p&#62;
&#60;p&#62;thanks for the extra effort finding another solution to my problem &#60;/p&#62;
&#60;p&#62;for now I'm forced to stick to 1.6.2 because the WooCommerce Extension is not supporting 1.6.3b (but I guess they will soon, they're rewriting the extension for GF, so I have heard)&#60;/p&#62;
&#60;p&#62;I'm happy these two great plugins can work well together!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Comparing between two fields in conditional logic?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/comparing-between-two-fields-in-conditional-logic#post-50139</link>
			<pubDate>Tue, 21 Feb 2012 17:25:03 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">50139@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You are correct, I was a bit confused by your original request.   &#60;/p&#62;
&#60;p&#62;You can use the gform_pre_render hook to change conditional logic using custom PHP.  That is where this documentation comes in, although the documentation you reference wasn't a standalone page... it's part of the Field Object documentation here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Fields&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Fields&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;So by itself, it's a bit out of context.&#60;/p&#62;
&#60;p&#62;But yes, it can be used to customize the conditional logic for the form using custom code.&#60;/p&#62;
&#60;p&#62;HOWEVER, I realized after trying to find a way for you to accomplish conditionally showing or hiding fields based on the value of post meta without using custom code *IF* you are using Gravity Forms v1.6.3 Beta 2.&#60;/p&#62;
&#60;p&#62;- Edit your form&#60;br /&#62;
- Add a Hidden Field to your form&#60;br /&#62;
- Edit this new Hidden Field&#60;br /&#62;
- Give the Field Label whatever you want to call it&#60;br /&#62;
- Select the Advanced Tab&#60;br /&#62;
- In the Default Value enter the merge tag for custom meta and the meta name of the post meta you want to return the value of.  For example, if the custom field name for the meta I wanted to return is &#34;test&#34; the merge tag would look like this:&#60;/p&#62;
&#60;p&#62;{custom_field:test}&#60;br /&#62;
- Save Your Form&#60;/p&#62;
&#60;p&#62;Now you can use the built in conditional logic by editing the fields you want to show or hide and configuring conditional logic to use the new Hidden Field you created as part of the condition.&#60;/p&#62;
&#60;p&#62;Even though it is a hidden field, it will still trigger conditional logic because conditional logic executes when the form is rendered and because the hidden field will be populated with the value you want... the conditional logic will be triggered based on it.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Gaslight on "Comparing between two fields in conditional logic?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/comparing-between-two-fields-in-conditional-logic#post-50138</link>
			<pubDate>Tue, 21 Feb 2012 16:48:06 +0000</pubDate>
			<dc:creator>Gaslight</dc:creator>
			<guid isPermaLink="false">50138@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I just found this post in the documentation&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/ConditionalLogic&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/ConditionalLogic&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I don't get it... it means I can actually set my own conditional logic for example in a gform_pre_render? if is it that so, then I would have solved by problem since i could pass the values I need in the &#34;rules&#34; array
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Gaslight on "Comparing between two fields in conditional logic?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/comparing-between-two-fields-in-conditional-logic#post-50129</link>
			<pubDate>Tue, 21 Feb 2012 14:22:54 +0000</pubDate>
			<dc:creator>Gaslight</dc:creator>
			<guid isPermaLink="false">50129@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;For a series of custom post types where I have a gravity forms attached, I would have stored some meta fields containing dates, which I can format as simple integers ($dd, $mm, $yyyy)&#60;/p&#62;
&#60;p&#62;I need to create a list of &#34;high seasons&#34; for a tourism ecommerce setup. Each custom post type could have its own &#34;high season&#34; period and I can specify that with date ranges.&#60;/p&#62;
&#60;p&#62;Based on these ranges I'd with to show/hide certain fields in the related gravity form appearing on the post. &#60;/p&#62;
&#60;p&#62;I know how to populate fields in a gravity form, but in this case it's about conditional logic. &#60;/p&#62;
&#60;p&#62;Suppose I populate a hidden field [1] with a $mm (month value).&#60;/p&#62;
&#60;p&#62;Then suppose I have two more fields in the form:&#60;/p&#62;
&#60;p&#62;[2] one is a month dropdown&#60;br /&#62;
[3] the other is a normal field that would show up only if month dropdown value [2] ==  hidden field value [1]&#60;/p&#62;
&#60;p&#62;that is if month value set in custom field and assigned to field [1] is identical to value chosen by user for field [2]&#60;/p&#62;
&#60;p&#62;Carl told me that I can't pass PHP into conditional logic&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/passing-values-dynamically-in-conditional-logic&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/passing-values-dynamically-in-conditional-logic&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;but in this case I wonder if there's any internal variable that can compare two fields in the same form, for example if there's anything else than a specific value I can put in the conditinal logic fied&#60;/p&#62;
&#60;p&#62;if this is not possible either, what would you suggest me to do? any ideas are greatly appreciated...&#60;/p&#62;
&#60;p&#62;thank you
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
