Hi

The width of field does not match lengh of postal code - (4 digits).
The field is aproximat 60

Comments

jeremyclassic’s picture

Status: Active » Closed (works as designed)

The maximum length of the field is 16. The width of the field is not being set in the module. Please review your theme.

mlzr’s picture

Hi,
When add a field there is no option to fill in the width, other fields have. (Length of the text field)
And in my case the field displays also prox. 60 chars on the form.
This is the width on a form display to fill in, not the display output, witch is indeed a case in the theme.

Marchello

jerry’s picture

Status: Closed (works as designed) » Active

The module should be setting a size attribute as well as the existing maxlength attribute for the widget form, or exposing a configurable size value to the user. For quick relief, change:

      '#maxlength'      => 16,

to:

      '#size'           => 16,
      '#maxlength'      => 16,

in postal_code_field_widget_form().