Grid mask in a form is a common configuration in any web system when we have a phone number and is most used when there is a need to change the way we exhibit letters and numbers, here we will show how to configure a mask into a from field using Scriptcase.

Here on the first screenshot we will see the Scriptcase form configuration area.

PHP Form

And on the second screenshot we will find the default numeric configuration for a form on Scriptcase.

PHP Form builder

Back on Scriptcase, at the form configuration, Grid Mask option we will configure it using the number 9 to identify a number, the letter “a” to identify a lowercase letter, the letter “A” to identify an uppercase letter and the symbol “*” to indentify letters and numbers.

Here we have a screenshot with a few examples of the mask usage.

PHP Form builder mask

Now all we have to do is to use some parenthesis to identify the state code, a blank space and then we will have four numbers, hyphen, and plus four numbers, just like the screenshot.

PHP Form builder mask

And now when we run our form, we will see something like this.

PHP Form builder

This is just another example about how Scriptcase can lower your development time, instead of lose a lot of time working on that phone field, I can just use the Grid Mask feature and do it in 30 seconds.

By ,

December 18, 2012


You might also like…

5 reasons you can’t miss a Black Friday Scriptcase!

This November we bring you the biggest and most important discounts of the year! And do you know wh...

Taking a look at Scriptcase version 9.7

After the big Scriptcase 9.7 presentation event, we have a new version of Scriptcase for download, ...

October Newsletter

Follow the latest news for the month of October! Webinars, blog posts, videos, and more. WEB...

You might also like…

Get new posts, resources, offers and more each week.

We will use the information you provide to update you about our Newsletter and Special Offers. You can unsubscribe any time you want by clinck in a link in the footer of any email you receive from us, or by contacting us at Learn more about our Privacy Police.