.. _formDataProvider: ================ FormDataProvider ================ `FormDataProvider `_ can be used to offer form-handling beyond the options provided by `displayCond` and `eval` in the TCA. Among other things, a FormDataProvider allows dynamic TCA changes while records are loaded in the TYPO3 backend. Example ------- This example explains how to make at least one image mandatory if the record is flagged as top news. 1) Update TCA ~~~~~~~~~~~~~ Create the file `Configuration/TCA/Overrides/tx_news_domain_model_news.php` in your custom extension. See `here `_ how to create that extension. .. code-block:: php 'reload'` you trigger a reload of the backend interface when the "Top news" toggle is clicked. 2) Register FormDataProvider class ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Update file `ext_localconf.php` in your extension: .. code-block:: php [ DatabaseRowInitializeNew::class, ], ]; 3) Add your FormDataProvider class ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code-block:: php