Feature #91238
closedFormEngine new record with child record
0%
Description
With the extension timelog working time is registered for tasks. The working time is defined by intervals that form child records from a task record (1:n relationship). When the user creates a new task he has to click the "Create new"-button to add an interval. It would be a better user experience if an interval would be automatically created when creating the task.
For TYPO3 V9 it was solved in a FormDataProvider with JS fireing a click event on the new button:
$pageRenderer->loadRequireJsModule(
'jquery',
'function() { $(".inlineNewButton").trigger("click"); }'
);
For TYPO3 V10 the js aproach doesn't work any more.
May be other users have similar use cases that could make such a feature interesting.
Updated by Georg Ringer 4 months ago
- Status changed from New to Rejected
Hey Roman,
this should already work out of the box using a custom formdataprovider which populates the form with a fake row.
also the (IMHO!) wrong way to trigger a click should be still be possible but I wouldn't go the client side way