Skip to Content Skip to Menu

how use a zero 'o' on field phone of type enter

  • chegm267
  • chegm267
  • OFFLINE
  • Posts: 32
  • Thanks: 0
  • Karma: 0
9 years 2 months ago - 9 years 2 months ago #270701 by chegm267
hello a think for your help : l want permit to user to use à zero (O) when l enter their phone nomber l creat a fiel phone nomber of type 'enter number' but impossible to view the zero enter in the form on firt in view frontend on form .
Attachments:
Last edit: 9 years 2 months ago by chegm267.

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
9 years 2 months ago #270728 by nant

chegm267 wrote: hello a think for your help : l want permit to user to use à zero (O) when l enter their phone nomber l creat a fiel phone nomber of type 'enter number' but impossible to view the zero enter in the form on firt in view frontend on form .


You are mote likely using an integer field type in CB and as such no leading 0 ar allowed.

Try using a text field.

Please Log in or Create an account to join the conversation.

  • chegm267
  • chegm267
  • OFFLINE
  • Posts: 32
  • Thanks: 0
  • Karma: 0
9 years 2 months ago #270892 by chegm267
thinks you for your help.l change the field phone in text field and l put in parameter --> validation -- > data accept 'change expression perl' and bellow in fiel "expression Perl" in take : /^[0-9]*$/
Now is not possible to enter other of digit
for have a zero by view default : l put it in parameter global in field default value : 0

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum