<?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: Use jQuery to fill in fields.</title>
		<link>https://legacy.forums.gravityhelp.com/topic/use-jquery-to-fill-in-fields</link>
		<description>Gravity Support Forums Topic: Use jQuery to fill in fields.</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 13:46:26 +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/use-jquery-to-fill-in-fields" rel="self" type="application/rss+xml" />

		<item>
			<title>Mums Studio on "Use jQuery to fill in fields."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-jquery-to-fill-in-fields#post-9236</link>
			<pubDate>Wed, 01 Sep 2010 12:35:14 +0000</pubDate>
			<dc:creator>Mums Studio</dc:creator>
			<guid isPermaLink="false">9236@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@Carl That's awesome. Works like a charm...&#60;/p&#62;
&#60;p&#62;Thank you very much.&#60;/p&#62;
&#60;p&#62;Bjarne // Mums Studio
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Use jQuery to fill in fields."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-jquery-to-fill-in-fields#post-9147</link>
			<pubDate>Mon, 30 Aug 2010 10:23:56 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">9147@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@Mums Studio: Yes, this is possible.  First you have to set that hidden field settings so it can be populated dynamically.  &#60;/p&#62;
&#60;p&#62;Edit your form, edit the hidden field you want to store the band name in and then select the Advanced tab.  Check the &#34;Allow field to be populated dynamically&#34; checkbox and then it will display a parameter field... give it a name such as &#34;bandname&#34;.  Save the form.&#60;/p&#62;
&#60;p&#62;Not you can pass a &#34;bandname&#34; parameter to your form such as...&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://domain.com/my-form?bandname=NAMEHERE&#34; rel=&#34;nofollow&#34;&#62;http://domain.com/my-form?bandname=NAMEHERE&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Mums Studio on "Use jQuery to fill in fields."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-jquery-to-fill-in-fields#post-9133</link>
			<pubDate>Mon, 30 Aug 2010 08:08:10 +0000</pubDate>
			<dc:creator>Mums Studio</dc:creator>
			<guid isPermaLink="false">9133@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have a question that seems a bit like this. Sorry if this is the wrong place to post this.&#60;/p&#62;
&#60;p&#62;Anyway, what I want, is to have a lot of bands to go to a page with GF and fill out the form. But, I would like one hidden field to dynamically be filled in with the name of the band.&#60;/p&#62;
&#60;p&#62;The emails to the bands, will be sent out using Campaign Monitor, and I thought I maybe could achieve this by making the band name part of the URL every band is going to click. Ex.: &#60;a href=&#34;http://domain.com/form.php#band_name&#34; rel=&#34;nofollow&#34;&#62;http://domain.com/form.php#band_name&#60;/a&#62; or &#60;a href=&#34;http://domain.com/form.php?=band_name&#34; rel=&#34;nofollow&#34;&#62;http://domain.com/form.php?=band_name&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;Does it make sense?&#60;/p&#62;
&#60;p&#62;Any help is highly appreciated...&#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tollie on "Use jQuery to fill in fields."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-jquery-to-fill-in-fields#post-8032</link>
			<pubDate>Fri, 30 Jul 2010 14:23:14 +0000</pubDate>
			<dc:creator>tollie</dc:creator>
			<guid isPermaLink="false">8032@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Actually, update - just noticed:&#60;/p&#62;
&#60;p&#62;The hidden input types do not allow for setting the CSS class. It would be helpful if that could be done.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
- tollie&#60;/p&#62;
&#60;p&#62;For the benefit of anyone curious, my solution thus far is to use the HTML block with unique classes (avoiding IDs only to avoid the possibility of conflicts) for each targeted element - a total of about 16. Then, calculate and concatenate what information from that I need passed along to the form, and passing it along by way of 2 hidden inputs.&#60;/p&#62;
&#60;p&#62;Since I can't set the hidden input CSS, I'll be using custom fields in wordpress to pass along their ID to my template on a page by page basis. (This is the burdensome method I used previously for all of the elements I needed - around 18 - to manipulate before GF implemented the HTML block.)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tollie on "Use jQuery to fill in fields."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-jquery-to-fill-in-fields#post-8027</link>
			<pubDate>Fri, 30 Jul 2010 11:54:04 +0000</pubDate>
			<dc:creator>tollie</dc:creator>
			<guid isPermaLink="false">8027@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks David. That helps. I had suspected, but hadn't counted on, that GF would reuse the same IDs.&#60;/p&#62;
&#60;p&#62;It would be very much appreciated if in the future, the possibility of pseudo-intelligently scanning the HTML blocks for inputs, was implemented.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
- tollie
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Use jQuery to fill in fields."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-jquery-to-fill-in-fields#post-8016</link>
			<pubDate>Fri, 30 Jul 2010 08:10:28 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">8016@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Tollie, if you are using the same form the field id's will be consistent. If you are using different forms but each form has the same fields you want to target, you can add classes to the fields in the GF admin and target them with jQuery that way.&#60;/p&#62;
&#60;p&#62;I'm still not 100% sure what you're end goal is here. If you'd be willing to share a link to the form in question, I'm sure I could give you a much more helpful answer. You can send it to &#60;a href=&#34;mailto:david@ounceoftalent.com&#34;&#62;david@ounceoftalent.com&#60;/a&#62;.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tollie on "Use jQuery to fill in fields."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-jquery-to-fill-in-fields#post-7984</link>
			<pubDate>Thu, 29 Jul 2010 13:15:29 +0000</pubDate>
			<dc:creator>tollie</dc:creator>
			<guid isPermaLink="false">7984@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for the responses. I'm afraid that somewhere along the line, I either miscommunicated or was misunderstood.&#60;/p&#62;
&#60;p&#62;Addressing the fields in the HTML block via jQuery is no problem.&#60;/p&#62;
&#60;p&#62;My question is: is there an easier way to address the GF inputs via javascript, than my previous solution which was to add the form to a page, view the page, and copy/paste the resulting IDs into wordpress custom fields?&#60;/p&#62;
&#60;p&#62;In other words, I need a way to control the resulting HTML IDs, or some other non-variable alternative that won't change.&#60;/p&#62;
&#60;p&#62;I need this:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;li id=&#38;#39;field_3_19&#38;#39; class=&#38;#39;gfield     gform_hidden&#38;#39; style=&#38;#39;display:none;&#38;#39;&#38;gt;&#38;lt;input name=&#38;#39;input_19&#38;#39; id=&#38;#39;input_3_19&#38;#39; type=&#38;#39;hidden&#38;#39; class=&#38;#39;gform_hidden&#38;#39; value=&#38;#39;TEST&#38;#39; /&#38;gt;&#38;lt;/li&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;To be this, or similar:&#60;br /&#62;
&#60;code&#62;&#38;lt;li id=&#38;#39;field_3_19&#38;#39; class=&#38;#39;gfield     gform_hidden&#38;#39; style=&#38;#39;display:none;&#38;#39;&#38;gt;&#38;lt;input name=&#38;#39;input_19&#38;#39; id=&#38;#39;SET-BY-ME&#38;#39; type=&#38;#39;hidden&#38;#39; class=&#38;#39;gform_hidden&#38;#39; value=&#38;#39;TEST&#38;#39; /&#38;gt;&#38;lt;/li&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Does this help to clarify my question? Thanks.&#60;/p&#62;
&#60;p&#62;- tollie&#60;/p&#62;
&#60;p&#62;PS. My first hope was that the inputs inside the HTML block would be auto-detected by GF and available for use in the notifications. The hidden inputs are merely a work around to that, since the HTML block inputs, effectively, don't work.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>pfoster on "Use jQuery to fill in fields."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-jquery-to-fill-in-fields#post-7944</link>
			<pubDate>Wed, 28 Jul 2010 17:58:23 +0000</pubDate>
			<dc:creator>pfoster</dc:creator>
			<guid isPermaLink="false">7944@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks - I'll dig into this and let you know how it comes out. Tollie, sorry to hijack the thread, hope you get an answer.&#60;/p&#62;
&#60;p&#62;Patrick
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Use jQuery to fill in fields."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-jquery-to-fill-in-fields#post-7942</link>
			<pubDate>Wed, 28 Jul 2010 17:44:39 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">7942@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Dave's basic code example above showed how to populate a field using jQuery:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;jQuery(&#38;quot;#field_id&#38;quot;).val(&#38;#39;Custom value here&#38;#39;);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;To do so via inputs, etc. of course is going to take more complex jQuery than that.  You would use jQuery to populate the hidden fields based on actions taken on your hardcoded fields in the HTML Block.  It's possible, but will take jQuery knowledge to implement.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>pfoster on "Use jQuery to fill in fields."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-jquery-to-fill-in-fields#post-7941</link>
			<pubDate>Wed, 28 Jul 2010 17:39:01 +0000</pubDate>
			<dc:creator>pfoster</dc:creator>
			<guid isPermaLink="false">7941@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I was actually looking to have quantity and total for each row (ex. id=&#34;qty_item_1&#34; and id=&#34;total_item_1&#34;) as well as the Grand Total (id=&#34;grandTotal&#34;) passed to GF. It's making that connection that I haven't been able to do. Of course it would be possible to build this outside of GF, but would really like to have it in there with all the other forms.&#60;br /&#62;
Carl, when you say &#34;jQuery can populate a field dynamically using javascript purely based on the HTML field ids&#34; could you explain how that would be done? &#60;/p&#62;
&#60;p&#62;Thanks again,
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
