Page 1 of 2

Telephone number formatting

Posted: Wed Sep 25, 2013 8:02 pm
by Ravi Wayne

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


Telephone number formatting

Posted: Wed Sep 25, 2013 8:20 pm
by maxkatz

Telephone number formatting

Posted: Tue Jul 15, 2014 9:26 pm
by Alex Van Name

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


Telephone number formatting

Posted: Tue Jul 15, 2014 11:04 pm
by Illya Stepanov

Hi Alex,

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


Telephone number formatting

Posted: Thu Jul 17, 2014 11:14 pm
by Alex Van Name

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.


Telephone number formatting

Posted: Fri Jul 18, 2014 12:13 am
by Yurii Orishchuk

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


Telephone number formatting

Posted: Fri Jul 18, 2014 12:30 am
by Alex Van Name

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


Telephone number formatting

Posted: Fri Jul 18, 2014 12:37 am
by Alex Van Name

how do I load a plug in?


Telephone number formatting

Posted: Fri Jul 18, 2014 1:16 am
by Yurii Orishchuk

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.


Telephone number formatting

Posted: Fri Jul 18, 2014 2:03 am
by Alex Van Name

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!