# \#input-mask

**URL:** https://community.gravityforms.com/tag/input-mask/11.md

[Latest](https://community.gravityforms.com/latest.md) · [Categories](https://community.gravityforms.com/categories.md) · [Tags](https://community.gravityforms.com/tags.md)

---

## [Input mask for UK postcode \[RESOLVED\]](https://community.gravityforms.com/t/input-mask-for-uk-postcode-resolved/20004)

<div class="topic-metadata">

**Author:** [@emma.bumstead](https://community.gravityforms.com/u/emma.bumstead)\
**Replies:** 4\
**Last updated:** [January 22, 2026, 5:21pm UTC](https://community.gravityforms.com/t/input-mask-for-uk-postcode-resolved/20004 "2026-01-22T17:21:54Z")

</div>

I’m using a single line text field in Gravity forms with an input mask and need a custom mask for a UK postcode. Does anyone have a working example of a UK postcode input mask? Thanks

---

## [Alphanumeric Answer - Custom Field](https://community.gravityforms.com/t/alphanumeric-answer-custom-field/16905)

<div class="topic-metadata">

**Author:** [@hansen](https://community.gravityforms.com/u/hansen)\
**Replies:** 1\
**Last updated:** [February 21, 2024, 9:25pm UTC](https://community.gravityforms.com/t/alphanumeric-answer-custom-field/16905 "2024-02-21T21:25:49Z")

</div>

Hello - I am building a site in Wordpress. We are using Gravity Forms. One of our questions could be either alpha or numeric for the answer. Example how many long have you been a contractor. They could answer 1 year or …

---

## [Input and Mask Question](https://community.gravityforms.com/t/input-and-mask-question/16663)

<div class="topic-metadata">

**Author:** [@jgroh](https://community.gravityforms.com/u/jgroh)\
**Replies:** 2\
**Last updated:** [January 18, 2024, 1:26am UTC](https://community.gravityforms.com/t/input-and-mask-question/16663 "2024-01-18T01:26:39Z")

</div>

I have a client’s form and an issue I am having is that they want to ask for something like a Home Phone Number, and use the formatting input mask for a US phone number. However, they also want to allow users to either i…

---

## [Users entering unnecessary '1' before area code in phone field](https://community.gravityforms.com/t/users-entering-unnecessary-1-before-area-code-in-phone-field/16263)

<div class="topic-metadata">

**Author:** [@jwebadgility](https://community.gravityforms.com/u/jwebadgility)\
**Replies:** 1\
**Last updated:** [November 13, 2023, 9:32pm UTC](https://community.gravityforms.com/t/users-entering-unnecessary-1-before-area-code-in-phone-field/16263 "2023-11-13T21:32:12Z")

</div>

We have a phone field on our form that is limited to 10 fields only. We are finding that some users are entering in the extra ‘1’ before the area code and thus we are not getting the last digit of their phone number. S…

---

## [Date picker, how to force slashes if someone types date?](https://community.gravityforms.com/t/date-picker-how-to-force-slashes-if-someone-types-date/15906)

<div class="topic-metadata">

**Author:** [@jandreoni](https://community.gravityforms.com/u/jandreoni)\
**Replies:** 0\
**Last updated:** [September 21, 2023, 1:29pm UTC](https://community.gravityforms.com/t/date-picker-how-to-force-slashes-if-someone-types-date/15906 "2023-09-21T13:29:17Z")

</div>

Hi there! My client is looking for a way for have the date picker display shashes if the user types in the date. Similar to how the Phone field displays (\_\_) - when the user tabs to it and when they type their area code …

---

## [Want option for Number field to contain only digits \[RESOLVED\]](https://community.gravityforms.com/t/want-option-for-number-field-to-contain-only-digits-resolved/13579)

<div class="topic-metadata">

**Author:** [@user5de15a8fe3347848](https://community.gravityforms.com/u/user5de15a8fe3347848)\
**Replies:** 0\
**Last updated:** [October 6, 2022, 8:34pm UTC](https://community.gravityforms.com/t/want-option-for-number-field-to-contain-only-digits-resolved/13579 "2022-10-06T20:34:13Z")

</div>

Nevermind. I found the advice to use a numerical mask in a single line text field. The Number field currently has three options: comma, decimal, or currency. Please add a fourth option: integer. The Number field on my…

---

## [Phone Cursor starting at end only on Windows (non-Mac) computers](https://community.gravityforms.com/t/phone-cursor-starting-at-end-only-on-windows-non-mac-computers/13527)

<div class="topic-metadata">

**Author:** [@user5fbf1e81e9768251](https://community.gravityforms.com/u/user5fbf1e81e9768251)\
**Replies:** 1\
**Last updated:** [October 3, 2022, 3:01pm UTC](https://community.gravityforms.com/t/phone-cursor-starting-at-end-only-on-windows-non-mac-computers/13527 "2022-10-03T15:01:59Z")

</div>

My client is complaining that the Gravity forms cursor for the Gravity Forms Phone Number is defaulting to the end. He is on a Windows Machine (non-Mac). I’m on a Mac and don’t have the issue. The phone cursor default…

---

## [Specific Form/field Target / Whole Numbers (Integers) only](https://community.gravityforms.com/t/specific-form-field-target-whole-numbers-integers-only/13253)

<div class="topic-metadata">

**Author:** [@Adey](https://community.gravityforms.com/u/Adey)\
**Replies:** 3\
**Last updated:** [August 18, 2022, 2:58pm UTC](https://community.gravityforms.com/t/specific-form-field-target-whole-numbers-integers-only/13253 "2022-08-18T14:58:02Z")

</div>

Hi all. Really cant remember how to do this as don’t get involved very often with the custom function. I have a form with an ID of 1 in which I would like the number field 1 to only accept whole numbers. At present when…

---

## [Cursor position when input mask is set \[RESOLVED\]](https://community.gravityforms.com/t/cursor-position-when-input-mask-is-set-resolved/11708)

<div class="topic-metadata">

**Author:** [@user61c1989d434cc360](https://community.gravityforms.com/u/user61c1989d434cc360)\
**Replies:** 5\
**Last updated:** [January 27, 2022, 7:19am UTC](https://community.gravityforms.com/t/cursor-position-when-input-mask-is-set-resolved/11708 "2022-01-27T07:19:07Z")

</div>

hey everyone, on chrome there is a quite misleading bug. If I have a mask input set (custom phone number), I will see the underline with the number of accepted characters, but if I dont click at the beginning of the fie…

---

## [Create a text field for number plates (car)](https://community.gravityforms.com/t/create-a-text-field-for-number-plates-car/11652)

<div class="topic-metadata">

**Author:** [@patrick\_wz](https://community.gravityforms.com/u/patrick_wz)\
**Replies:** 1\
**Last updated:** [January 20, 2022, 5:16pm UTC](https://community.gravityforms.com/t/create-a-text-field-for-number-plates-car/11652 "2022-01-20T17:16:01Z")

</div>

Is it possible to set up an field, so it looks like this: The user only can fill these 8 charakters, the first 4 are letters and the last 4 are numbers. Thanks for the help

---

## [Position caret in Phone Field \[RESOLVED\]](https://community.gravityforms.com/t/position-caret-in-phone-field-resolved/11107)

<div class="topic-metadata">

**Author:** [@user561](https://community.gravityforms.com/u/user561)\
**Replies:** 3\
**Last updated:** [November 4, 2021, 3:19pm UTC](https://community.gravityforms.com/t/position-caret-in-phone-field-resolved/11107 "2021-11-04T15:19:27Z")

</div>

When clicking into a phone field, the caret lands where the user clicked into the field. Is there a way to force the caret to the 1st position?

---

## [Moving cursor to correct point with a mask](https://community.gravityforms.com/t/moving-cursor-to-correct-point-with-a-mask/10927)

<div class="topic-metadata">

**Author:** [@sean1](https://community.gravityforms.com/u/sean1)\
**Replies:** 1\
**Last updated:** [October 18, 2021, 7:20pm UTC](https://community.gravityforms.com/t/moving-cursor-to-correct-point-with-a-mask/10927 "2021-10-18T19:20:49Z")

</div>

Hi there, I have created a form for a client and there is a custom mask on the phone input, I would like for it to always focus at the start of where they can type from and not where it is clicked. Anyone able to help,…

---

## [How to split down text entered in a postcode entry](https://community.gravityforms.com/t/how-to-split-down-text-entered-in-a-postcode-entry/10709)

<div class="topic-metadata">

**Author:** [@danhardy](https://community.gravityforms.com/u/danhardy)\
**Replies:** 0\
**Last updated:** [September 8, 2021, 10:33am UTC](https://community.gravityforms.com/t/how-to-split-down-text-entered-in-a-postcode-entry/10709 "2021-09-08T10:33:26Z")

</div>

Hi All, in gravity forms is there a way to have a single line field which shows the first part of a postcode entry (Before the space). Currently I use a single line field with custom input mask set at \*\*\*\* but it ignore…

---

## [Limit number field to one decimal only](https://community.gravityforms.com/t/limit-number-field-to-one-decimal-only/10289)

<div class="topic-metadata">

**Author:** [@noellesteegs](https://community.gravityforms.com/u/noellesteegs)\
**Replies:** 1\
**Last updated:** [July 15, 2021, 5:13pm UTC](https://community.gravityforms.com/t/limit-number-field-to-one-decimal-only/10289 "2021-07-15T17:13:58Z")

</div>

Hi, I have a number field in which customers will enter a measurement. How can I limit it to one decimal only? I know I could use a text field with a mask, but a) if I’m right I cannot use it with calculations and b) I …

---

## [GF, please fix the Repeater Form Input Mask bug](https://community.gravityforms.com/t/gf-please-fix-the-repeater-form-input-mask-bug/9737)

<div class="topic-metadata">

**Author:** [@danloffler](https://community.gravityforms.com/u/danloffler)\
**Replies:** 1\
**Last updated:** [June 8, 2021, 6:13pm UTC](https://community.gravityforms.com/t/gf-please-fix-the-repeater-form-input-mask-bug/9737 "2021-06-08T18:13:05Z")

</div>

If you try to use the setting for input mask, on a repeater form field it just doesn’t work. There is no error, or message. It’s up to you to find out why it’s not working. Eventually you end up looking at the “Known Lim…

---

## [Repeater Form Input Mask not working](https://community.gravityforms.com/t/repeater-form-input-mask-not-working/9673)

<div class="topic-metadata">

**Author:** [@danloffler](https://community.gravityforms.com/u/danloffler)\
**Replies:** 3\
**Last updated:** [June 4, 2021, 4:29pm UTC](https://community.gravityforms.com/t/repeater-form-input-mask-not-working/9673 "2021-06-04T16:29:30Z")

</div>

Hi All, I am having trouble getting a Phone number to use the Input Mask settings on a repeater form. The mask works everywhere else. Here’s a link to my form, the Veterinarian Info at the bottom … https://cancercarere…

---

## [Numeric format with a single decimal](https://community.gravityforms.com/t/numeric-format-with-a-single-decimal/8492)

<div class="topic-metadata">

**Author:** [@user6061588b72c49014](https://community.gravityforms.com/u/user6061588b72c49014)\
**Replies:** 1\
**Last updated:** [April 23, 2021, 5:38pm UTC](https://community.gravityforms.com/t/numeric-format-with-a-single-decimal/8492 "2021-04-23T17:38:56Z")

</div>

How can I do so that it only allows me to add a single decimal digit, that is, limit the decimal value to a single digit. And if the user enters more than one decimal value, for example 5.45, it cannot and is restricted …

---

## [Is input mask support everything we need?](https://community.gravityforms.com/t/is-input-mask-support-everything-we-need/7323)

<div class="topic-metadata">

**Author:** [@user5fecd460a17e0796](https://community.gravityforms.com/u/user5fecd460a17e0796)\
**Replies:** 4\
**Last updated:** [January 4, 2021, 1:42pm UTC](https://community.gravityforms.com/t/is-input-mask-support-everything-we-need/7323 "2021-01-04T13:42:36Z")

</div>

hi , before i buy GravityForm i have question about input mask and how could we limit characters or allow only special characters and numbers for field cause i read this : https://docs.gravityforms.com/input-mask/ and …

---

## [How can i place a comma and decimal point in number field \[RESOLVED\]](https://community.gravityforms.com/t/how-can-i-place-a-comma-and-decimal-point-in-number-field-resolved/8126)

<div class="topic-metadata">

**Author:** [@user601a1a53c029b337](https://community.gravityforms.com/u/user601a1a53c029b337)\
**Replies:** 3\
**Last updated:** [March 4, 2021, 6:12pm UTC](https://community.gravityforms.com/t/how-can-i-place-a-comma-and-decimal-point-in-number-field-resolved/8126 "2021-03-04T18:12:39Z")

</div>

how can i place a comma and decimal point in an empty number field ie xx,xxx.xx much thanks

---

## [Address Zip/postal code Mask](https://community.gravityforms.com/t/address-zip-postal-code-mask/7181)

<div class="topic-metadata">

**Author:** [@phukit](https://community.gravityforms.com/u/phukit)\
**Replies:** 3\
**Last updated:** [December 21, 2020, 1:35pm UTC](https://community.gravityforms.com/t/address-zip-postal-code-mask/7181 "2020-12-21T13:35:29Z")

</div>

Hi, I can’t seem to find any information on this, so I thought maybe someone can help me here. I am looking to add a mask to the postal code field. I have tried this code but it doesn’t work or needs further modificat…

---

## [Custom Validation on Field for Product Registration](https://community.gravityforms.com/t/custom-validation-on-field-for-product-registration/6695)

<div class="topic-metadata">

**Author:** [@znmick](https://community.gravityforms.com/u/znmick)\
**Replies:** 3\
**Last updated:** [November 5, 2020, 10:55pm UTC](https://community.gravityforms.com/t/custom-validation-on-field-for-product-registration/6695 "2020-11-05T22:55:11Z")

</div>

Hello! We’re working with a client who’s got a rather large database of customers who’ve purchased products (in the magnitude of thousands) and they’d like to provide a way for people to “register” their warranty on the…

---

## [Cursor position on field focus \[RESOLVED\]](https://community.gravityforms.com/t/cursor-position-on-field-focus-resolved/4663)

<div class="topic-metadata">

**Author:** [@simonc](https://community.gravityforms.com/u/simonc)\
**Replies:** 2\
**Last updated:** [July 23, 2020, 12:50pm UTC](https://community.gravityforms.com/t/cursor-position-on-field-focus-resolved/4663 "2020-07-23T12:50:16Z")

</div>

When I click into a field with a standard or custom mask applied, the cursor jumps to the position I’ve clicked. Or to the end if I’ve clicked outside the mask length. For example a single line text field with SSN mask o…

---

## [Prefix a number field \[RESOLVED\]](https://community.gravityforms.com/t/prefix-a-number-field-resolved/3215)

<div class="topic-metadata">

**Author:** [@Kkramer2195](https://community.gravityforms.com/u/Kkramer2195)\
**Replies:** 5\
**Last updated:** [November 11, 2019, 5:48pm UTC](https://community.gravityforms.com/t/prefix-a-number-field-resolved/3215 "2019-11-11T17:48:43Z")

</div>

Hello fellow GF Users, I am working on a form where the user wants to have their customer enter a number value, say 1234, but we need to add UN- in front of the number when the form is submitted and have it appear on th…

---

## [Gravity forms custom mask?](https://community.gravityforms.com/t/gravity-forms-custom-mask/2784)

<div class="topic-metadata">

**Author:** [@user5c9e28e756a6d061](https://community.gravityforms.com/u/user5c9e28e756a6d061)\
**Replies:** 3\
**Last updated:** [September 19, 2019, 4:13pm UTC](https://community.gravityforms.com/t/gravity-forms-custom-mask/2784 "2019-09-19T16:13:24Z")

</div>

Hi, I was wondering how can i do mask like this or is it even possible : I would need to allow user to add field with numbers and letters and hyphen. But seems that hyphen is not possible when using 9, a, \*, ? etc… S…

---

## [Mobile phone number bug on Android / Samsung Devices](https://community.gravityforms.com/t/mobile-phone-number-bug-on-android-samsung-devices/981)

<div class="topic-metadata">

**Author:** [@nugravityforms](https://community.gravityforms.com/u/nugravityforms)\
**Replies:** 5\
**Last updated:** [February 7, 2019, 3:27pm UTC](https://community.gravityforms.com/t/mobile-phone-number-bug-on-android-samsung-devices/981 "2019-02-07T15:27:56Z")

</div>

Found a major issue with Samsung Android phones when inputing into the phone field. When typing the numbers, erroneious characters are added and the cursor skips… you can see it here in this video. Is there a ticket in …

---

## [Phone Number Validation on Android - not working](https://community.gravityforms.com/t/phone-number-validation-on-android-not-working/141)

<div class="topic-metadata">

**Author:** [@wordherd](https://community.gravityforms.com/u/wordherd)\
**Replies:** 5\
**Last updated:** [October 25, 2018, 1:21pm UTC](https://community.gravityforms.com/t/phone-number-validation-on-android-not-working/141 "2018-10-25T13:21:38Z")

</div>

Hello, The phone number field restrictions are not being enforced on Android phones. Does anyone know of a work around? Thank you
