How to make a input mask field? (bread)

hermesalvesbr

Dec 10th, 2019 02:06 AM

Hi,

It's to possible to make a mask, like phone mask (999) 99999 - 9999 using the bread? Maybe using aditional options field?

mark

Dec 10th, 2019 07:00 AM

When I maintained it, I setup the feature for anyone to add their own fields. You can add a field to Voyager using the Voyager::addFormField(YourFieldClassHere::class) (use this in a service provider's register method). Fetch some inspiration from the existing once: https://github.com/the-control-group/voyager/tree/1.3/src/FormFields

fisat-satyra

Dec 27th, 2019 07:45 PM

You utilize an input mask when it's significant that the configuration of the information esteems is predictable. For instance, you may utilize an information veil with a field that stores telephone numbers so Access requires ten digits of info. On the off chance that somebody enters a telephone number without the region code, Access won't compose the information until the zone code information is included.