Project

General

Profile

Actions

Feature #103545

open

Add tca option autofocus to make an input field automatically focused when creating a new record

Added by Simon Schaufelberger 24 days ago. Updated 23 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2024-04-06
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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.

Actions #1

Updated by Simon Schaufelberger 24 days ago

  • Description updated (diff)
Actions #2

Updated by Stefan Bürk 23 days ago

And how to deal with:

  • multiple fields having autofocus
  • field with autofocus not in "active" tab

?

Actions #3

Updated by Simon Schaufelberger 23 days ago · Edited

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?

Actions

Also available in: Atom PDF