Hallo,
ich möchte meine Formularfelder im Kassenmodul in Pflichtfelder verwandeln.
Ist diese Vorgegehnsweise noch aktuell?
https://www.contao-community.de/show...pe+pflichtfeld
Dann erstelle ich eine dcaconfig.php in system/config
mit folgenden Parametern:
<?php
$GLOBALS['TL_DCA']['tl_iso_addresses']['fields']['firstname']['eval']['mandatory'] = true;
$GLOBALS['TL_DCA']['tl_iso_addresses']['fields']['name']['eval']['mandatory'] = true;
$GLOBALS['TL_DCA']['tl_iso_addresses']['fields']['street']['eval']['mandatory'] = true;
$GLOBALS['TL_DCA']['tl_iso_addresses']['fields']['postal']['eval']['mandatory'] = true;
$GLOBALS['TL_DCA']['tl_iso_addresses']['fields']['city']['eval']['mandatory'] = true;
$GLOBALS['TL_DCA']['tl_iso_addresses']['fields']['email']['eval']['mandatory'] = true;
?>
Nur leider bekomme ich dann nur noch eine leere Seite angezeigt.
ist wahrscheinlich nur eine Kleinigkeit was mache ich nur falsch?
Bin dankbar für jeden Tipp.
Gruß Letko
Lesezeichen