I created a text field with a select or other both as multiples or singles. I then set the maxlength of the text field to 1000. Some of the data I'm receiving is still over that but regardless every time I submit the data I get "Value must be a string at most 255 characters long." even though I've defined the maxlength to be 1000.

The display has the maxlength attribute and 1000 value for the html and I can enter in 1000 characters, I'm just not able to save the value. Also the database table is the correct value VARCHAR(1000).

Comments

iancm’s picture

Issue summary: View changes

Added db field

danielb’s picture

Status: Active » Fixed

Cheers, I've committed a fix, it will appear in the next dev release (check the date is after this post).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

spelling error

  • Commit a66b65e on 7.x-2.x, 7.x-3.x, 8.x-3.x by danielb:
    Issue #1474658 by danielb, iancm: Maxlength correction in field widget.