<?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: Add Conditional Logic To Product Form</title>
		<link>https://legacy.forums.gravityhelp.com/topic/add-conditional-logic-to-product-form</link>
		<description>Gravity Support Forums Topic: Add Conditional Logic To Product Form</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 06:35:40 +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/add-conditional-logic-to-product-form" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Add Conditional Logic To Product Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-conditional-logic-to-product-form#post-81913</link>
			<pubDate>Thu, 18 Oct 2012 01:13:59 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">81913@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I like what you have done so far: looks good.&#60;/p&#62;
&#60;p&#62;Now, it looks like you are going to need to look up some pricing with gform_pre_submission.  You want to be able to use the pricing in the email notification and possibly on the confirmation screen?  And stored within the entry?  If any of those are true, then gform_pre_submission is the place to do your lookup.  &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_pre_submission&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_pre_submission&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;You will need a hidden field for each blind in your form, since that is where we are going to store the price of the blind.  You have to have to have the field in the form, not visible to the user, so we have a place to store our price.&#60;/p&#62;
&#60;p&#62;The function you hook to the gform_pre_submission filter will have to connect to the database, retrieve the information you need, based on your rules, then return the correct data (ID, price?)  I'm not sure how column and row correspond to width and height exactly, but this will all be part of the code you write to retrieve the information from the database.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>weboptimizers on "Add Conditional Logic To Product Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-conditional-logic-to-product-form#post-81825</link>
			<pubDate>Wed, 17 Oct 2012 19:38:15 +0000</pubDate>
			<dc:creator>weboptimizers</dc:creator>
			<guid isPermaLink="false">81825@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris Thank you for your response.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://111.67.16.102/~wwwaustr/rollers/?p=4&#34; rel=&#34;nofollow&#34;&#62;Example&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I did exactly as you mentioned. It worked great.&#60;br /&#62;
Now I need to develop the logic that will look through the matrix to find a price.&#60;/p&#62;
&#60;p&#62;What is the best way of approaching this matrix price lookup issue ?&#60;/p&#62;
&#60;p&#62;I have gone ahead and converted the matrix from CSV into a DB table and inserted them using&#60;br /&#62;
'ID' , 'Column' , 'Row' and 'Price'&#60;/p&#62;
&#60;p&#62;Now I would like to lookup a number a user enters for width and height say (600W and 700H) from the DB and output a price result. &#60;/p&#62;
&#60;p&#62;This number can be between a two numbers as well. For example DB has 600 , 700 , 800 , 900 and the customer could enter 632 and the function should roundup to the nearest row which is 700 in our case. Output the price for the value.&#60;/p&#62;
&#60;p&#62;Any ideas or pointers on where to get started.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Add Conditional Logic To Product Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-conditional-logic-to-product-form#post-81650</link>
			<pubDate>Wed, 17 Oct 2012 07:07:21 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">81650@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Do you have an example of this online now?  How far have you gotten with it?&#60;/p&#62;
&#60;p&#62;It does not seem like you can use a list type field, because numbers are not one of the field types in a list (text or drop down select only), so I don't think the calculations would work.&#60;/p&#62;
&#60;p&#62;However, you could add multiple sections and display them with conditional logic.  You might have 10 groups of fields for width and height, and only display one by default.  Then, you could reveal another by having the user check a box &#34;Add another&#34; and that would be the condition for conditional logic to reveal the next set of width x height fields.  &#60;/p&#62;
&#60;p&#62;Would that work?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>weboptimizers on "Add Conditional Logic To Product Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-conditional-logic-to-product-form#post-81533</link>
			<pubDate>Tue, 16 Oct 2012 18:13:45 +0000</pubDate>
			<dc:creator>weboptimizers</dc:creator>
			<guid isPermaLink="false">81533@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Anyone on this one ?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>weboptimizers on "Add Conditional Logic To Product Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-conditional-logic-to-product-form#post-81328</link>
			<pubDate>Tue, 16 Oct 2012 01:03:17 +0000</pubDate>
			<dc:creator>weboptimizers</dc:creator>
			<guid isPermaLink="false">81328@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am trying to create a form to calculate a quote for a blinds website. This form has many conditional fields and the price is calculated based on user inputs.&#60;/p&#62;
&#60;p&#62;I have a price list which is in the matrix format. These have a width and a height field.&#60;br /&#62;
If a customer enters width 20 and height 20 in the frontend the price changes to 200&#60;br /&#62;
If a customer enters width 30 and height 30 in the frontend the price changes to 300&#60;br /&#62;
If a customer enters width 40 and height 40 in the frontend the price changes to 400&#60;/p&#62;
&#60;p&#62;I would also like them to enter multiple entires at once on one page to capture multiple dimesions for multiple blinds in one form.&#60;/p&#62;
&#60;p&#62;For example&#60;/p&#62;
&#60;p&#62;Enter Width Blind 1 ____________  Enter height Blind 1 _______________&#60;br /&#62;
Enter Width Blind 2 ____________  Enter height Blind 2 _______________&#60;br /&#62;
Enter Width Blind 3 ____________  Enter height Blind 3 _______________&#60;/p&#62;
&#60;p&#62;Would You like to add more ? Click here&#60;/p&#62;
&#60;p&#62;Your total is $$xx&#60;/p&#62;
&#60;p&#62;Is this possible with gravity forms ? If yes I have a fair understanding of creating functions. Pointing in appropriate direction with a simple example would do.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
