<?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: Custom regex validation for fields</title>
		<link>https://legacy.forums.gravityhelp.com/topic/custom-regex-validation-for-fields</link>
		<description>Gravity Support Forums Topic: Custom regex validation for fields</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 23:29:31 +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/custom-regex-validation-for-fields" rel="self" type="application/rss+xml" />

		<item>
			<title>Contexture on "Custom regex validation for fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-regex-validation-for-fields#post-40494</link>
			<pubDate>Tue, 08 Nov 2011 14:58:14 +0000</pubDate>
			<dc:creator>Contexture</dc:creator>
			<guid isPermaLink="false">40494@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks, Danny. That's actually very helpful.&#60;/p&#62;
&#60;p&#62;Someone needs to put your post in the Wiki. I'm sure there's others out there who will benefit.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Custom regex validation for fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-regex-validation-for-fields#post-40352</link>
			<pubDate>Tue, 08 Nov 2011 01:26:28 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">40352@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for the update Danny.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Danny on "Custom regex validation for fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-regex-validation-for-fields#post-40284</link>
			<pubDate>Mon, 07 Nov 2011 15:23:36 +0000</pubDate>
			<dc:creator>Danny</dc:creator>
			<guid isPermaLink="false">40284@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Actually Gravity Forms does let you do this. Alex (from Gravity Forms) sent these instructions to me and they worked just fine.&#60;/p&#62;
&#60;p&#62;Following is a brief description on how to create a custom field type.&#60;/p&#62;
&#60;p&#62;1- Add your field type to the form editor toolbar using the following hook&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_add_field_buttons&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_add_field_buttons&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;2- Render your field on the form by using the following hook&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_field_input&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_field_input&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;3- Validate user entered input and return a validation error when appropriate, using the following hook&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_field_validation&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_field_validation&#60;/a&#62; (requires v. 1.6 which is still in beta)&#60;br /&#62;
OR&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_validation&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_validation&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;4- If your field type requires special client side scripts, use the following hook to enqueue them&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_enqueue_scripts&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_enqueue_scripts&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;5- If your field type requires additional settings, you can add them using the following hooks&#60;br /&#62;
Advanced Tab Settings&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_field_advanced_settings&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_field_advanced_settings&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Standard Tab Settings&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_field_standard_settings&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_field_standard_settings&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Contexture on "Custom regex validation for fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-regex-validation-for-fields#post-39263</link>
			<pubDate>Fri, 28 Oct 2011 17:20:34 +0000</pubDate>
			<dc:creator>Contexture</dc:creator>
			<guid isPermaLink="false">39263@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've checked out the gform_add_field_buttons - it's not complex at all, it's outright incomplete. There doesn't appear to be any other hooks or documentation for *defining* the field you've just created a button for.&#60;/p&#62;
&#60;p&#62;The gform_add_field_buttons filter merely adds a button for a field that does nothing. If I had time to reverse engineer the plugin, I'm sure I could figure it out, but since I'm pressed for time, I find I'm better off just building forms by hand, the old fashioned way. &#60;/p&#62;
&#60;p&#62;It seems to me that Gravity Forms just isn't very flexible OR developer-friendly.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Custom regex validation for fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-regex-validation-for-fields#post-39182</link>
			<pubDate>Thu, 27 Oct 2011 23:59:03 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">39182@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You can do regex validation using the &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_validation&#34; rel=&#34;nofollow&#34;&#62;gform_validation&#60;/a&#62; filter.  The regex would go in your functions.php.  If you mean via the form builder, that's something that has been discussed.&#60;/p&#62;
&#60;p&#62;You can create new custom field types using the &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_add_field_buttons&#34; rel=&#34;nofollow&#34;&#62;gform_add_field_buttons&#60;/a&#62; filter.  I wouldn't say it's non-complex, but it's certainly possible with Gravity Forms 1.5.3 or 1.6.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Contexture on "Custom regex validation for fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-regex-validation-for-fields#post-39135</link>
			<pubDate>Thu, 27 Oct 2011 15:41:53 +0000</pubDate>
			<dc:creator>Contexture</dc:creator>
			<guid isPermaLink="false">39135@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;What I'd really, really, REALLY like to see is either of these two things:&#60;/p&#62;
&#60;p&#62;1) The ability to set a custom validation regex for any standard field OR&#60;br /&#62;
2) The ability to create new custom field types (which would allow &#34;normal&#34; people to reuse custom fields we create).&#60;/p&#62;
&#60;p&#62;I'm actually pretty amazed that Gravity Forms doesn't just do either of these things out of the box - not even in the latest RC.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
