Skip to Content Skip to Menu

Problems in Mobile No with Integer Field

  • lokpriya
  • lokpriya
  • OFFLINE
  • Posts: 4
  • Thanks: 0
  • Karma: 0
12 years 11 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 or Create an account to join the conversation.

  • rspack
  • rspack
  • OFFLINE
  • Posts: 29
  • Thanks: 4
  • Karma: 6
12 years 9 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 or Create an account to join the conversation.

  • bk6366
  • bk6366
  • OFFLINE
  • Posts: 97
  • Thanks: 22
  • Karma: 4
12 years 9 months ago #193028 by bk6366
Custom Perl Expression on Phone Number Field:
Code:
/^[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 or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum