<?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: Input mask validation clears content on invalid input</title>
		<link>https://legacy.forums.gravityhelp.com/topic/input-mask-validation-clears-content-on-invalid-input</link>
		<description>Gravity Support Forums Topic: Input mask validation clears content on invalid input</description>
		<language>en-US</language>
		<pubDate>Sun, 05 Apr 2026 14:22:34 +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/input-mask-validation-clears-content-on-invalid-input" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Input mask validation clears content on invalid input"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/input-mask-validation-clears-content-on-invalid-input#post-134312</link>
			<pubDate>Mon, 28 Jan 2013 19:18:29 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">134312@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;If your client does not like the functionality of the input mask script, I think it would be best to not use it at all, and then just validate the input.  You can use the gform_validation filter to check the input against your own mask, and return an error if the input does not match.  Here is how to use gform_validation: &#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;Looking over the documentation of the masked input script, I don't see a way to modify the way it works to meet your needs: &#60;a href=&#34;http://digitalbush.com/projects/masked-input-plugin/&#34; rel=&#34;nofollow&#34;&#62;http://digitalbush.com/projects/masked-input-plugin/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>EmuDesign on "Input mask validation clears content on invalid input"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/input-mask-validation-clears-content-on-invalid-input#post-127938</link>
			<pubDate>Mon, 21 Jan 2013 20:24:17 +0000</pubDate>
			<dc:creator>EmuDesign</dc:creator>
			<guid isPermaLink="false">127938@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Otherwise if you could please let me know how else to perform validation on content, happy to use that instead.&#60;/p&#62;
&#60;p&#62;Cheers,&#60;br /&#62;
Emu
&#60;/p&#62;</description>
		</item>
		<item>
			<title>EmuDesign on "Input mask validation clears content on invalid input"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/input-mask-validation-clears-content-on-invalid-input#post-127936</link>
			<pubDate>Mon, 21 Jan 2013 20:23:36 +0000</pubDate>
			<dc:creator>EmuDesign</dc:creator>
			<guid isPermaLink="false">127936@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I understand, but is there a way to turn that functionality off? I am inclined to agree with our client in that it is a little annoying for the user. For example, if they accidentally don't hit a key correctly and then tab out of the field it clears everything. I would expect it to just show an error.&#60;/p&#62;
&#60;p&#62;Cheers,&#60;br /&#62;
Emu
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Input mask validation clears content on invalid input"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/input-mask-validation-clears-content-on-invalid-input#post-122808</link>
			<pubDate>Tue, 15 Jan 2013 19:56:09 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">122808@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I see your form.  When I enter incomplete data in the phone field, and tab off the field, my input disappears immediately. That is how the input mask script works.  If I submit the form, I am submitting with nothing in the phone number field because the data is not accepted as soon as I tab off the field to go on to the next. Does that make sense?  When it fails validation, it's because there was nothing entered in the phone field at all, because the incomplete number was never accepted in the field in the first place.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>EmuDesign on "Input mask validation clears content on invalid input"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/input-mask-validation-clears-content-on-invalid-input#post-122806</link>
			<pubDate>Tue, 15 Jan 2013 19:50:50 +0000</pubDate>
			<dc:creator>EmuDesign</dc:creator>
			<guid isPermaLink="false">122806@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Please see &#60;a href=&#34;http://anmfsa.emu.com.au/contact-us/&#34; rel=&#34;nofollow&#34;&#62;http://anmfsa.emu.com.au/contact-us/&#60;/a&#62; and the &#34;Phone&#34; field.&#60;/p&#62;
&#60;p&#62;Essentially what we would expect to happen is if the validation fails, for the data the user entered to still be there so that they can adjust it accordingly. At this moment it will clear the &#34;Phone&#34; field of data if the user attempts to submit and the data is invalid.&#60;/p&#62;
&#60;p&#62;Cheers,&#60;br /&#62;
Emu
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Input mask validation clears content on invalid input"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/input-mask-validation-clears-content-on-invalid-input#post-122593</link>
			<pubDate>Tue, 15 Jan 2013 13:12:43 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">122593@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;If the input does not match the mask, the field will become blank after you tab or click off it.  How can the data be submitted and fail validation if it's not there after you exit the field?&#60;/p&#62;
&#60;p&#62;Can you post a link to your form please?  With all those numbers being required, I can't see how you could submit less than that in the first place, and what the validation error would be if you did submit the whole thing (other than the field being required.)  Something does not make sense to me and I will need more information from you please.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>EmuDesign on "Input mask validation clears content on invalid input"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/input-mask-validation-clears-content-on-invalid-input#post-122176</link>
			<pubDate>Tue, 15 Jan 2013 02:36:44 +0000</pubDate>
			<dc:creator>EmuDesign</dc:creator>
			<guid isPermaLink="false">122176@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;We have a text field with an input mask of:&#60;br /&#62;
99 9999 9999&#60;/p&#62;
&#60;p&#62;However, we have found that if the user doesn't complete the whole thing (so for example types 07 3333 3) it will clear the content of the whole field during validation. Is there any way to prevent this? Our client would like users to see the data they previously entered.&#60;/p&#62;
&#60;p&#62;Cheers,&#60;br /&#62;
Emu
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
