-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.x]: Hidden title field in a section still shows up after validation #13876
Comments
It’s intentionally shown when there’s a validation error so the error can be shown somewhere, which can happen if the Title Format setting doesn’t produce a value. However as of Craft 4.5 it’s not really needed anymore, since the Title validation error will also be shown within the validation summary at the top of the page. So I’ve just removed the code that forced the Title field to be shown for validation errors. |
Thanks for looking into this. Yes I noticed it showing up in the validation summary as well. As for the Title Format we currently use |
Another option/feature would be to make a field |
So most likely you have an entry that didn’t already have a title, and
Not sure how that would solve anything here? But you’re welcome to suggest it in a new discussion. |
Honestly I updated and tested the Title Format after you posted the fix. So we had the Title Format set to
Well in this case because the title is filled through FeedMe, and used as an identifier since entries can only be matched by Title in Feed Me. We can still show the field so the client can (re)view the identifier without modifying it directly. Of course they can still modify it in the data provided to FeedMe. |
Craft 4.5.10 is out now, with that change to no longer show the Title field when it has a validation error. |
What happened?
Description
Hidden title field in a section still shows up after validation
Steps to reproduce
Show the Title field
to falseExpected behavior
The Title field should remain hidden and not be editable when set to
Show the Title field
, but is visible and editable after trying to safe the entry. I know it is a required field, but why make it possible to hide it if it is always required? Maybe it should be auto-filled by another field or anything?Actual behavior
The Title field becomes visible and is editable.
Craft CMS version
4.5.9
PHP version
8.2
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
No response
The text was updated successfully, but these errors were encountered: