<?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: Number Masked Field Keeps Resetting Tablet Keyboard to Alpha</title>
		<link>https://legacy.forums.gravityhelp.com/topic/number-masked-field-keeps-resetting-tablet-keyboard-to-alpha</link>
		<description>Gravity Support Forums Topic: Number Masked Field Keeps Resetting Tablet Keyboard to Alpha</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 05:21:32 +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/number-masked-field-keeps-resetting-tablet-keyboard-to-alpha" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Number Masked Field Keeps Resetting Tablet Keyboard to Alpha"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/number-masked-field-keeps-resetting-tablet-keyboard-to-alpha#post-75648</link>
			<pubDate>Sun, 16 Sep 2012 09:26:44 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">75648@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Michael.  Glad you were able to make that work.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Phoenix1127 on "Number Masked Field Keeps Resetting Tablet Keyboard to Alpha"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/number-masked-field-keeps-resetting-tablet-keyboard-to-alpha#post-75633</link>
			<pubDate>Sun, 16 Sep 2012 08:18:09 +0000</pubDate>
			<dc:creator>Phoenix1127</dc:creator>
			<guid isPermaLink="false">75633@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Chris,&#60;br /&#62;
I cannot thank you enough for your quick responses and help!  That works perfectly with a standard text field.  I will be combing through the code to better understand the variables you used so that I can learn from this and improve my understanding of php functions.  The gravity forms plugin is overall extremely easy to use and very intuitive, and the level of support when I do run into a snag makes it worth every penny.  Thanks again!&#60;/p&#62;
&#60;p&#62;Sincerely,&#60;br /&#62;
Michael Griffin
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Number Masked Field Keeps Resetting Tablet Keyboard to Alpha"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/number-masked-field-keeps-resetting-tablet-keyboard-to-alpha#post-75566</link>
			<pubDate>Sat, 15 Sep 2012 17:13:42 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">75566@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I created a form with a single field to test this.  Please try using different formats for the data you input and see if the validation is good:  &#60;a href=&#34;http://gravity.chrishajer.com/force-fha-case-number-format/&#34; rel=&#34;nofollow&#34;&#62;http://gravity.chrishajer.com/force-fha-case-number-format/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;This is the code: &#60;a href=&#34;http://pastebin.com/ntptAp0L&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/ntptAp0L&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Phoenix1127 on "Number Masked Field Keeps Resetting Tablet Keyboard to Alpha"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/number-masked-field-keeps-resetting-tablet-keyboard-to-alpha#post-75410</link>
			<pubDate>Fri, 14 Sep 2012 18:51:04 +0000</pubDate>
			<dc:creator>Phoenix1127</dc:creator>
			<guid isPermaLink="false">75410@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Okay, so I pretty lost on how to code this.  If this is outside the scope of this support forum I will completely understand, but below is the initial code I added to functions.php to try after changing the field to a standard text field.  The field ID for the Case # is 1.  Am I way off base here?&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;#39;gform_validation&#38;#39;, &#38;#39;validate_casenumber&#38;#39;);
function validate_casenumber($validation_result){
$form = $validation_result[&#38;quot;form&#38;quot;];
	if (preg_match(&#38;quot;/\d{3}-\d{6}/&#38;quot;, $entry[1])) {
		$validation_result[&#38;quot;is_valid&#38;quot;] = true;
				} else {
	if($field[&#38;quot;id&#38;quot;] == &#38;quot;1&#38;quot;){
		$field[&#38;quot;failed_validation&#38;quot;] = true;
                $field[&#38;quot;validation_message&#38;quot;] = &#38;quot;This field is invalid!&#38;quot;;
                break;
		            }
        }
$validation_result[&#38;quot;form&#38;quot;] = $form;
return $validation_result;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Phoenix1127 on "Number Masked Field Keeps Resetting Tablet Keyboard to Alpha"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/number-masked-field-keeps-resetting-tablet-keyboard-to-alpha#post-75004</link>
			<pubDate>Wed, 12 Sep 2012 16:39:41 +0000</pubDate>
			<dc:creator>Phoenix1127</dc:creator>
			<guid isPermaLink="false">75004@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks so much Chris for the response.  Apologies for not getting back sooner but this week has been crazy!  I will try and implement your suggestion.  I will have to do a little reading up on the gform_validation hook, but hopefully I can get it to work.  It kills me with these tablets how some things work on one but not on the other.  Seems like they all have at least one thing that doesn't work as expected!  &#60;/p&#62;
&#60;p&#62;Thanks again!&#60;/p&#62;
&#60;p&#62;Michael
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Number Masked Field Keeps Resetting Tablet Keyboard to Alpha"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/number-masked-field-keeps-resetting-tablet-keyboard-to-alpha#post-73861</link>
			<pubDate>Tue, 04 Sep 2012 16:50:29 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">73861@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You would need a regular expression (regex) to determine if the format of the input is correct.  It would ensure that there are 3 numbers, a dash, then 6 numbers.  It's all done at once: the regexwill give the string a true or false (it's the correct format or it's not.)  If it's not, return a validation error.  If it is, continue with the submission.&#60;/p&#62;
&#60;p&#62;The regex for a string like your example might look something like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;\b\d{3}-\d{6}\b&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;That's 3 digits, a hyphen, and 6 digits.  The \b are word boundaries.  I think you would use it like this in PHP (assuming field 2 in the form holds your FHA case number): &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
if (preg_match(&#38;quot;/\d{3}-\d{6}/&#38;quot;, $entry[2])) {
    echo &#38;quot;That&#38;#39;s a valid case number.&#38;quot;;
} else {
    echo &#38;quot;That&#38;#39;s an invalid case number.&#38;quot;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;That is the regex part of it.  You have to combine that with the gform_validation hook and return a validation error or not.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Phoenix1127 on "Number Masked Field Keeps Resetting Tablet Keyboard to Alpha"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/number-masked-field-keeps-resetting-tablet-keyboard-to-alpha#post-73852</link>
			<pubDate>Tue, 04 Sep 2012 15:39:19 +0000</pubDate>
			<dc:creator>Phoenix1127</dc:creator>
			<guid isPermaLink="false">73852@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks so much for the quick reply Chris!  I understand the basics of the gform_validation_hook, but I am not sure how to test or what variable to test for.  In other words, is there a way I can test for the format ###-###### or do I need to run a check on each character to verify that it is a number?  And if the latter is true, would I check for the &#34;-&#34; character in the same way?  I understand if this is beyond the scope of this support forum, but I figured it couldn't hurt to ask.&#60;/p&#62;
&#60;p&#62;Thanks again for any help/direction you can provide,&#60;/p&#62;
&#60;p&#62;Michael
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Number Masked Field Keeps Resetting Tablet Keyboard to Alpha"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/number-masked-field-keeps-resetting-tablet-keyboard-to-alpha#post-73837</link>
			<pubDate>Tue, 04 Sep 2012 14:09:03 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">73837@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I don't have a tablet here to confirm your issue. Rather than force the input format with JavaScript using the input mask, you could use custom validation after form submission.  &#60;/p&#62;
&#60;p&#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;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Using_the_Gravity_Forms_%22gform_validation%22_Hook&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Using_the_Gravity_Forms_%22gform_validation%22_Hook&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Phoenix1127 on "Number Masked Field Keeps Resetting Tablet Keyboard to Alpha"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/number-masked-field-keeps-resetting-tablet-keyboard-to-alpha#post-73830</link>
			<pubDate>Tue, 04 Sep 2012 13:58:53 +0000</pubDate>
			<dc:creator>Phoenix1127</dc:creator>
			<guid isPermaLink="false">73830@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Apologies if this has been asked/answered before but I was unable to find anything regarding this via search.  I have a website at &#60;a href=&#34;http://www.inspectionqc.com&#34; rel=&#34;nofollow&#34;&#62;http://www.inspectionqc.com&#60;/a&#62;.  The first field titled FHA Case # is masked to only accept numbers in the format ###-######.  The end users will be filling in the form on tablets, and in testing on an ACER ICONIA TAB (Android OS) when the user sets the keyboard to number input, it resets to alpha after each character input.  So they have to enter 9 digits, and hit the key to put the keyboard back to number input after each character.  I realize this may be an OS issue, but is there any known workaround so the users can type the numbers in more quickly?  Is there another field type I could use that might not show this behavior and still validate as ###-######?&#60;/p&#62;
&#60;p&#62;Thanks in advance for any help,&#60;/p&#62;
&#60;p&#62;Michael Griffin
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
