Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When setting up a textfield with a relatively small data length, the textfield should be shrunk to represent this length. This is particularly true when entering post or zip codes which look odd if they are being put into an 80 char text input box.
Comments
Comment #1
ullgren CreditAttribution: ullgren commentedThe textfield will now be set to size == maxlength if the maxlength is <50.
For maxlength > 50 the size will be set to 50.
Comment #2
lba CreditAttribution: lba commentedCould it be you forgot to commit your fix to head?
Thx,
Luc
Comment #3
ullgren CreditAttribution: ullgren commentedNope ... should be there in the 4.4 branch aswell.
If setting the extra field to a number for the textfield component this is
used to set the maxsize and, if it is below 50, the size of the textfield.
Comment #4
(not verified) CreditAttribution: commented