<?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: Adding custom attribute to form tag</title>
		<link>https://legacy.forums.gravityhelp.com/topic/adding-custom-attribute-to-form-tag</link>
		<description>Gravity Support Forums Topic: Adding custom attribute to form tag</description>
		<language>en-US</language>
		<pubDate>Thu, 30 Apr 2026 14:07:02 +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/adding-custom-attribute-to-form-tag" rel="self" type="application/rss+xml" />

		<item>
			<title>David Peralty on "Adding custom attribute to form tag"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/adding-custom-attribute-to-form-tag#post-121744</link>
			<pubDate>Mon, 14 Jan 2013 15:42:37 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">121744@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Here is our hook for adding various things to the &#38;lt;form&#38;gt; element:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_form_tag&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_form_tag&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>activore on "Adding custom attribute to form tag"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/adding-custom-attribute-to-form-tag#post-121724</link>
			<pubDate>Mon, 14 Jan 2013 15:12:34 +0000</pubDate>
			<dc:creator>activore</dc:creator>
			<guid isPermaLink="false">121724@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi David. Thanks for the quick response!&#60;/p&#62;
&#60;p&#62;It's not the id, it's just a custom attribute that the js from another plugin (WP Cash+) uses for its unrelated purposes. So I need pretty much exactly what I put in my example code -- in addition to the id attribute, an ids attribute.&#60;/p&#62;
&#60;p&#62;The Form Settings &#38;gt; Advanced tag doesn't show me a way to add my own attributes. I can add classes, which i'm also taking advantage of, but I don't see any other way to affect the &#38;lt;form&#38;gt; tag itself.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Adding custom attribute to form tag"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/adding-custom-attribute-to-form-tag#post-121705</link>
			<pubDate>Mon, 14 Jan 2013 14:35:35 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">121705@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;What are ids, do you mean CSS ID? You can't add custom CSS ID tags to the form using the short code, but you can in the form editor. Under Form Settings -&#38;gt; Advanced, you can add your own attributes.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>activore on "Adding custom attribute to form tag"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/adding-custom-attribute-to-form-tag#post-121691</link>
			<pubDate>Mon, 14 Jan 2013 14:23:31 +0000</pubDate>
			<dc:creator>activore</dc:creator>
			<guid isPermaLink="false">121691@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I need to add a custom attribute called &#60;em&#62;ids&#60;/em&#62; to my gravityform &#38;lt;form&#38;gt; tag, so it will come out like:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;form method=&#38;#39;post&#38;#39; enctype=&#38;#39;multipart/form-data&#38;#39;  id=&#38;#39;gform_3&#38;#39; ids=&#38;#39;3,2&#38;#39; class=&#38;#39;lead-gen&#38;#39; action=&#38;#39;/test-page/&#38;#39;&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Optimally, I would like this to be as easy as a shortcode like&#60;/p&#62;
&#60;p&#62;&#60;code&#62;[gravityform id=1 ids=&#38;#39;3,2&#38;#39;]&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I'd really appreciate it if anybody has any ideas for how this could be achieved. I see that there's a gform_form_tag filter, but I'm not exactly sure how to use it to add an attribute.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
