Liste der Anhänge anzeigen (Anzahl: 1)
Hallo,
auf ein Feld kannst Du so abfragen:
PHP-Code:
if ($arrPost['FELDNAME'] == 'WERT') {/*MACHWAS*/}
Dann noch zu Abfrage auf die FormID:
PHP-Code:
if($arrForm['formID'] == 'meineformid') {/*MACHWAS*/}{
Die trägst Du im Feld FormID des Formulargenerators ein
Anhang 22739
Du hast glaube ich die ID des Formulars genommen.
Alles in allem dann so im Gerüst (ungetestet):
PHP-Code:
<?php if (!defined('TL_ROOT')) die('You cannot access this file directly!');
class MeinHook extends Backend {
public function myProcessFormData($arrPost, $arrForm, $arrFiles) {
if($arrForm['formID'] == 'meineformid') {
if ($arrPost['meinfeldname'] == 'ja') {
/*WAS AUCH IMMER DU MACHEN WILLST*/
}
}
}
}