<?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: Quantity Field depending on ID</title>
		<link>https://legacy.forums.gravityhelp.com/topic/quantity-field-depending-on-id</link>
		<description>Gravity Support Forums Topic: Quantity Field depending on ID</description>
		<language>en-US</language>
		<pubDate>Tue, 21 Apr 2026 18:35:29 +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/quantity-field-depending-on-id" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Quantity Field depending on ID"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/quantity-field-depending-on-id#post-153038</link>
			<pubDate>Sat, 23 Feb 2013 09:52:30 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">153038@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;If your products are all on one page, then all the products on that page will receive the new quantity label.  That filter is per-form, not per-field.&#60;/p&#62;
&#60;p&#62;To change the label on the front end of the form based on the product (field) you could use jQuery.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bqbqr on "Quantity Field depending on ID"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/quantity-field-depending-on-id#post-150353</link>
			<pubDate>Tue, 19 Feb 2013 15:36:50 +0000</pubDate>
			<dc:creator>Bqbqr</dc:creator>
			<guid isPermaLink="false">150353@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi!&#60;/p&#62;
&#60;p&#62;First of all i hope you will understand me, english is not my native language.&#60;br /&#62;
I'm using this code to change the Quantity label:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php add_filter(&#38;quot;gform_product_quantity&#38;quot;, &#38;quot;set_quantity_label&#38;quot;, 10, 2);
 function set_quantity_label($sublabel, $form_id){
    return &#38;quot;Pour Combien de Personnes?&#38;quot;;
}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;What I need to do is changing the Quantity label depending which product ID it is. I've a list of product ID which is quite big (50 entries at first), so the greatest thing for me will be to do a &#34;If&#34; in the function to see if the label has to be changed or not. But I don't know Php for now.... Do you guys have a simple solution?&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
