NEW Can set isMandatory property in generic setup framework

This commit is contained in:
Laurent Destailleur (aka Eldy)
2025-02-06 13:51:35 +01:00
parent 0772222900
commit adb455e4a5
2 changed files with 3 additions and 3 deletions

View File

@@ -112,6 +112,7 @@ if (!$user->admin) {
// Setup conf for selection of an URL
$item = $formSetup->newItem('MYMODULE_MYPARAM1');
$item->fieldParams['isMandatory'] = 1;
$item->fieldAttr['placeholder'] = (empty($_SERVER['HTTPS']) ? 'http://' : 'https://') . $_SERVER['HTTP_HOST'];
$item->cssClass = 'minwidth500';