WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
Removing leading zeros (2 posts)

  1. bryn34
    Member
    Posted 1 year ago #

    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:

    06123456789

    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

    Bryn

    http://wordpress.org/extend/plugins/contact-form-7/

  2. davejampole
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic