Ravi Wayne
Posts: 0
Joined: Sat Jul 20, 2013 7:20 pm

Telephone number formatting

Hello,

For a input fields, there is a type property with option tel (which I assume is telephone). What does this do? Is there a easy way to format telephone numbers? Like a mask?

Thank you.

Image

Alex Van Name
Posts: 0
Joined: Mon Jun 30, 2014 7:36 pm

Telephone number formatting

I looked at this, but do you put this code in the javascript area?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Telephone number formatting

Hi Alex,

This are properties of an input component that changes appropriate attributes.

Alex Van Name
Posts: 0
Joined: Mon Jun 30, 2014 7:36 pm

Telephone number formatting

Thanks so much Illya, it doesn't work for my ipad, or my browser , so I wonder how I can help the user and prevent them from entering the wrong format.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Telephone number formatting

Hi Alex,

You can use any jQuery plugin you like for these goals.

For example see here some of them http://jquery-plugins.net/tag/input-f...

Also let me know if you you will have any problem with using it.

Regards

Alex Van Name
Posts: 0
Joined: Mon Jun 30, 2014 7:36 pm

Telephone number formatting

Yurii, thanks so much for your response. I will look and study these things. I am close to learning this coding part. Thank you.

Alex Van Name
Posts: 0
Joined: Mon Jun 30, 2014 7:36 pm

Telephone number formatting

how do I load a plug in?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Telephone number formatting

Alex,

Here is a brief plan for this goal:

1 Download jQuery plugin. Copy JS code text.

2 Create new JS asset in Appery.io application.

3 Paste JS code from 1st step to the JS asset from 2nd step.

4 Now you can use plugin like it described in documentation for plugin.

For example:

pre

jQuery('[name="inputName"]').pluginName();

/pre

Regards.

Alex Van Name
Posts: 0
Joined: Mon Jun 30, 2014 7:36 pm

Telephone number formatting

Awesome!!, does this work for other javascripts that I find on the web, like ones for printing out pdfs like from http://parall.ax/products/jspdf ?

I'm www.youtube.com/watch?v=y6Sxv-sUYtM!

Return to “Issues”