Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Contao 3.1.3 - Form field validation pb #6283

Closed
vmulot opened this issue Oct 8, 2013 · 1 comment
Closed

Contao 3.1.3 - Form field validation pb #6283

vmulot opened this issue Oct 8, 2013 · 1 comment
Labels
Milestone

Comments

@vmulot
Copy link

vmulot commented Oct 8, 2013

Hi, we created a form, with some fields. let's say we have a field called "field_x" and it's a text field with a numeric validation and maxlength 5 char.

but we want to change this field into a select field so let's switch the field type, set options and save.

in front, when submitting form, it shows an error on this field saying max length should be at 5 char... but it's not an input, but a select field.
I had to come back to admin, change this field into a text field again, remove validation and maxlength and then change again into a select field and then pb is gone.

Can't say if it's really a bug or a request feature, but it would be nice that validation and max lenght are "linked" to field so when switching field type, there's no conflict.

Thanks

@leofeyer
Copy link
Member

Fixed in 86ee131.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants