WordPress.org

Ready to get started?Download WordPress

Forums

Visual Form Builder
[resolved] Number field (2 posts)

  1. davidgabunia
    Member
    Posted 1 year ago #

    The problem is that numbers, people should enter, starts with zero - 0.

    For example 01020008886

    And when I receive email, I don't see first figure - 0 I see only 1020008886.

    Any solution?

    http://wordpress.org/extend/plugins/visual-form-builder/

  2. Matthew Muro
    Visual Form Builder Pro
    Plugin Author

    Posted 1 year ago #

    Numbers are sanitized as integers and integers with leading zeros are stripped because they are not mathematically significant. This is just how intval() works.

    If you need the leading zero, I suggest using a Text field with a manual Validation option of Digits. That should work but I have not tested it specifically.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.