<p>I just wrote one! <a href="https://github.com/marionnewlevant/craft-mn_matchinput" rel="nofollow">MN Match Input</a>. You specify an <code>Input Mask</code> and the entry won't save if <code>preg_match($inputMask, $value)</code> isn't 1. So you get all the power of <a href="http://php.net/manual/en/function.preg-match.php" rel="nofollow">preg_match</a> (lots of rope...)</p>

CC BY-SA 3.0
2015-01-04T06:35:49.180Z
2015-01-04T06:35:49.180Z
Marion Newlevant
<p>Is there anything like the <a href="http://devot-ee.com/add-ons/ndg-masked-input" rel="nofollow">EE add-on</a> for Craft?</p>

<p>This would be <em>really</em> useful for part numbers, etc.</p>

CC BY-SA 3.0
2014-11-12T15:39:53.543Z
I don't think there is but I would love to see something like this. First party would be even cooler....
Tyler Willingham
CC BY-SA 3.0
2014-11-16T04:37:41.107Z
Probably not something we would add to the core. You should ask the developer and see if they can port it to Craft ;)
Brandon Kelly
<fieldtypes>
Is there a masked input field type for Craft?
# Is there a masked input field type for Craft?

(Asked by: username_0 on 2014-11-12)

Is there anything like the [EE add-on](http://devot-ee.com/add-ons/ndg-masked-input) for Craft?

This would be *really* useful for part numbers, etc.

**Tags:** fieldtypes

> **Comments:**
> **username_1**: I don't think there is but I would love to see something like this. First party would be even cooler....  
> **username_2**: Probably not something we would add to the core. You should ask the developer and see if they can port it to Craft ;)  

---

## 1 answers

### Answer by username_3 on 2015-01-04. Score: 1

I just wrote one! [MN Match Input](https://github.com/marionnewlevant/craft-mn_matchinput). You specify an `Input Mask` and the entry won't save if `preg_match($inputMask, $value)` isn't 1. So you get all the power of [preg\_match](http://php.net/manual/en/function.preg-match.php) (lots of rope...)


---

