Currently, minimum and maximum validation on Number type form components is limited to 10 digits. I would like to create forms that validate whether a number is in a 14-digit barcode range. Could the maxlength limitation on the minimum and maximum be increased to 14 or removed? (Or, if there is a way to achieve this already, please refer me to the solution.)

For example, I would like to be able to specify:

  • Minimum: 29078000000000
  • Maximum: 29078099999999

But currently the interface will only accept:

  • Minimum: 2907800000
  • Maximum: 2907899999

Comments

ladybug_3777’s picture

I'd like to know what the maximum value is that can go in this field. I tried 9999999999, but when the form is submitted with that high of a value, the value is missing. I'm thinking this max is based on database settings in conjunction with a 10 digit length number.

*EDIT*
My mistake, the number is not showing if I click "edit" on the results, it does display properly as 9999999999 when I click "view". Looks like I accidentally uncovered a different bug here.

danchadwick’s picture

Status: Active » Closed (won't fix)

Webform 7.x-3.x is receiving critical fixes only. If there is still an issue for 7.x-4.x, please reopen. Please note that very large integers like these are not well suited for the number component. There will be rounding issues when the value is converted to floating point.

sclsweb’s picture

Version: 7.x-3.19 » 7.x-4.16
Status: Closed (won't fix) » Active
liam morland’s picture

Version: 7.x-4.16 » 7.x-4.x-dev
liam morland’s picture

Status: Active » Closed (outdated)

Drupal 7 is no longer supported. If this applies to a supported version, please re-open.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.