Support » Plugin: Contact Form 7 » Removing leading zeros

  • Hi,

    I’m trying to remove the leading zeros of numbers that people submit to my form.

    For example:
    They would type in Their phone number:


    and I would receive an email with their number “without the leading zero”

    So instead of: 06123456789 it would be 6123456789

    Has anyone got an idea how i could achieve this?

    Thanks in advance


Viewing 1 replies (of 1 total)
  • I may be way off here, but if you have a numeric field set to some width (eg, 10) and you enter 7 digits, it will be padded with 0’s to the left. Try changing the field to text to eliminate the padding.

Viewing 1 replies (of 1 total)
  • The topic ‘Removing leading zeros’ is closed to new replies.