diff --git a/Classes/ViewHelpers/Condition/IsReadonlyFieldViewHelper.php b/Classes/ViewHelpers/Condition/IsReadonlyFieldViewHelper.php index 9e2afcb..c414ab1 100644 --- a/Classes/ViewHelpers/Condition/IsReadonlyFieldViewHelper.php +++ b/Classes/ViewHelpers/Condition/IsReadonlyFieldViewHelper.php @@ -70,6 +70,12 @@ public function render() { // get field configuration $config = \Slub\SlubForms\Helper\ArrayHelper::configToArray($field->getConfiguration()); + if (!empty($config['readonly'])) { + if((trim($config['readonly']) === 'TRUE')||(trim($config['readonly']) === 'true') || (trim($config['readonly']) === '1')) { + return 'readonly'; + } + } + if (!empty($config['prefill'])) { // values may be comma separated: // e.g. prefill = fe_users:username, fe_users:email, news:news