Problems in Mobile No with Integer Field

12 years 3 months ago #188302 by lokpriya
Hello!

I would like to request for the help on integer field and input of mobile number example "9847432454" of Nepal phone format. When I input the number in registration it changes in the profile. Please help me.
What expression should I place for the above number to the exact in the profile ?
Lopriya

Please Log in to join the conversation.

12 years 2 months ago #192084 by rspack
You could use a text type field and make a custom perl expression to format the type of input allowed.

As I am not a guru, you would need to read more about Perl Expressions. Perhaps google it to find an expression that fits your formatting requirements.

Scott

Please Log in to join the conversation.

12 years 1 month ago #193028 by bk6366
Custom Perl Expression on Phone Number Field:
/^[0-9]*$/

More info on Perl expressions and how they work.



bk
---
J1.7.3 / CB 1.7.1 / PHP 5.2.17 (no, not upgrading yet)
Current J/CB Project

'Terse'
Guide to getting answers
Please note that pm's related to CB issues will go unanswered. That's what the forums are for.
Attachments:
The following user(s) said Thank You: ziggy03

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.198 seconds

Facebook Twitter LinkedIn