#103545Add tca option autofocus to make an input field automatically focused when creating a new record
Description
This would speed up creating records like pages, categories.
Could this only be done when creating a new record but not for existing ones because that wouldn’t make sense?
Since adding the autofocus attribute via html doesn’t work, this needs to be done via formengine most likely.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
History 4
-
Simon Schaufelberger changed description 04/06/24, 16:54
-
Stefan Bürk commented 04/07/24, 16:00
-
Simon Schaufelberger commented 04/07/24, 18:32
This should be the responsibility of the developers of the project. If TYPO3 would limit the field names to for example title or headline, then people would start to complain why “myspecialheadline” can’t be set as autofocus.
I would believe in the wise use of this configuration and that it won’t be misused.
It should only be possible to autofocus for new records, not for editing!
Would it be possible to validate tca configuration across all tca fields in form engine?
-
Georg Ringer commented and changed status
NewRejected 03/13/25, 20:02hey Simon,
I am rejecting the issue as there are so many variants where this is not really easy to solve and it is impossible to let the developer decide how this should be solved.
For sure, the formengine input workflow and also presentation of fields can be improved but the autofocus is IMHO one of the smallest things here.
And how to deal with:
?