<?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: Conditional statement in form depending on field answer</title>
		<link>https://legacy.forums.gravityhelp.com/topic/conditional-statement-in-form-depending-on-field-answer</link>
		<description>Gravity Support Forums Topic: Conditional statement in form depending on field answer</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 06:34: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/conditional-statement-in-form-depending-on-field-answer" rel="self" type="application/rss+xml" />

		<item>
			<title>RichardBest on "Conditional statement in form depending on field answer"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-statement-in-form-depending-on-field-answer#post-6454</link>
			<pubDate>Sat, 19 Jun 2010 02:27:46 +0000</pubDate>
			<dc:creator>RichardBest</dc:creator>
			<guid isPermaLink="false">6454@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi again - I'm now trying this but am having trouble getting the javascript file (init.js) into the right place. I've called the script in my header.php but doubt that's the right place for it. Can someone help please?&#60;/p&#62;
&#60;p&#62;Many thanks&#60;br /&#62;
Richard
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Conditional statement in form depending on field answer"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-statement-in-form-depending-on-field-answer#post-6375</link>
			<pubDate>Wed, 16 Jun 2010 07:58:56 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">6375@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Richard,&#60;/p&#62;
&#60;p&#62;(1) This would ideally go in an external javascript file. If you view the source the demo page you'll see that I include an external js file called &#34;init.js&#34;:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;script type=&#38;#39;text/javascript&#38;#39; src=&#38;#39;http://ounceoftalent.com/wp-content/themes/ounce/javascript/init.js?ver=2.9.2&#38;#39;&#38;gt;&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I try to put any code that should be run after the DOM is ready in that file. Just helps to keep things organized.&#60;/p&#62;
&#60;p&#62;(2) Pretty much. Specifically, it is the ID of the field you would like to target. This ID is automatically generated by Gravity Forms based on the logic you deducted: &#34;input_3_3&#34; is form 3 field 3. The best way to get the ID of the field you want to target is to just view the source on the form you are working with and find the field and corresponding ID that way.&#60;/p&#62;
&#60;p&#62;Glad this is going to work for you. :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>RichardBest on "Conditional statement in form depending on field answer"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-statement-in-form-depending-on-field-answer#post-6374</link>
			<pubDate>Wed, 16 Jun 2010 05:53:31 +0000</pubDate>
			<dc:creator>RichardBest</dc:creator>
			<guid isPermaLink="false">6374@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;That's superb. Thanks so much. Very much appreciated David.&#60;/p&#62;
&#60;p&#62;If I could just clarify a couple of points please:&#60;/p&#62;
&#60;p&#62;(1) does the code go in the functions.php file?&#60;br /&#62;
(2) does &#34;input 3_3&#34; mean form 3 field 3 (excuse the ignorance, I should know this one...)&#60;/p&#62;
&#60;p&#62;Many thanks. Superb.&#60;/p&#62;
&#60;p&#62;Richard
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Conditional statement in form depending on field answer"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-statement-in-form-depending-on-field-answer#post-6367</link>
			<pubDate>Tue, 15 Jun 2010 21:44:06 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">6367@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Richard,&#60;/p&#62;
&#60;p&#62;I believe this might do the trick for you:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://ounceoftalent.com/form-testing/&#34; rel=&#34;nofollow&#34;&#62;http://ounceoftalent.com/form-testing/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;To create a similar effect, you can use the following code as a base:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/1006288&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/1006288&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;That little bit of code would read something along the lines of: Whenever the value of this specified field changes, check if the new selected value is equal to this specified value. If it is, let's display an error message. If not, let's remove any error messages that might be showing.&#60;/p&#62;
&#60;p&#62;There is probably more optimal way given that you are going to having many questions and each would require it's own block of code like the one provide with the field id and specified value updated for each, but this will at least get you started.&#60;/p&#62;
&#60;p&#62;Hope this helps!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>RichardBest on "Conditional statement in form depending on field answer"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-statement-in-form-depending-on-field-answer#post-6339</link>
			<pubDate>Tue, 15 Jun 2010 00:19:01 +0000</pubDate>
			<dc:creator>RichardBest</dc:creator>
			<guid isPermaLink="false">6339@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Spivurno&#60;/p&#62;
&#60;p&#62;Yes, I think it is only when a non-proceeding answer is selected that I want the warning text to appear. As regards your second question, I think I could use GF's existing conditional logic to hide the remaining fields (or sections of fields) on the form when a person selects a non-proceeding answer within a field.&#60;/p&#62;
&#60;p&#62;Perhaps I should also clarify that I'm hoping to have multiple non-proceeding answers, across different fields, within the single form. So the single form might be quite complex, with up to 20 or 30 questions. Along the way, there'd be a handful of non-proceeding answers for some answers to some of the fields.&#60;/p&#62;
&#60;p&#62;Come to think of it, it would also be excellent if I could disable the submit button when a person selects a non-proceeding answer.&#60;/p&#62;
&#60;p&#62;I  hope this makes sense.&#60;/p&#62;
&#60;p&#62;Thanks in advance if you're able to provide some help on this. Much appreciated.&#60;/p&#62;
&#60;p&#62;Richard
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Conditional statement in form depending on field answer"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-statement-in-form-depending-on-field-answer#post-6321</link>
			<pubDate>Mon, 14 Jun 2010 08:01:47 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">6321@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Richard,&#60;/p&#62;
&#60;p&#62;To clarify, are you only interested in having text appear if a non-proceeding answer is selected? Also, if a non-proceeding answer is selected should the other fields on the form be inaccessible/grayed out/hidden completely?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>RichardBest on "Conditional statement in form depending on field answer"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-statement-in-form-depending-on-field-answer#post-6319</link>
			<pubDate>Mon, 14 Jun 2010 06:06:49 +0000</pubDate>
			<dc:creator>RichardBest</dc:creator>
			<guid isPermaLink="false">6319@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Carl. I'm afraid the jQuery code you mention is beyond me. I understand entirely if this isn't a runner, but is there any chance one of the team could post some sample code to show how this would work in practice please?&#60;/p&#62;
&#60;p&#62;Thanks in advance for any help you can provide.&#60;/p&#62;
&#60;p&#62;Cheers&#60;br /&#62;
Richard
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Conditional statement in form depending on field answer"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-statement-in-form-depending-on-field-answer#post-6301</link>
			<pubDate>Sun, 13 Jun 2010 15:12:59 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">6301@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;It may be possible to do this using jQuery.  Attach an action to a specific field so that if it is selected the jQuery could fire a javascript alert box/warning.  There isn't any built in functionality to do this so it would have to be via custom jQuery code that interacts with the form.&#60;/p&#62;
&#60;p&#62;When we add a free form HTML box/field it would be possible to show/hide this field based on a selection and you could display some sort of message that way.  But this won't be introduced until v1.4 at the earliest.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>RichardBest on "Conditional statement in form depending on field answer"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-statement-in-form-depending-on-field-answer#post-6272</link>
			<pubDate>Sat, 12 Jun 2010 06:34:30 +0000</pubDate>
			<dc:creator>RichardBest</dc:creator>
			<guid isPermaLink="false">6272@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi there - I'm thinking of using Gravity Forms for a completed set-of-forms set-up. To make it work, I need to be able to implement this scenario:&#60;/p&#62;
&#60;p&#62;A person is filling in a form. One or more fields in the form need to be answered in a certain way for it to make any sense to continue with the form. For example, let's say there's an A, B or C multichoice field. It only makes sense to continue if the user answers A. I can use conditional logic to hide all subsequent questions if the user doesn't answer A  (i.e, if s/he answers B or C), but I'd like a warning box to appear when the user answers B or C. Ideally a red extension to the current field would show, which would contain customised wording I set, basically informing the user that she cannot continue unless she answers in a certain way. This is not the same as setting a field to &#34;Required status&#34;. It's more refined than that. The user needs to be able to answer in different ways (as opposed to answer or not answering at all) but I need the option for a warning to appear if s/he answers B or C (in this example).&#60;/p&#62;
&#60;p&#62;Is this sort of thing possible with Gravity Forms? Or will it only be possible when you add the forthcoming text option (which presumably will enable one to let that text appear by reference to conditional logic)?&#60;/p&#62;
&#60;p&#62;Many thanks&#60;br /&#62;
Richard
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
