major
nice-to-have
minor
minor
#25758
Mandatory-Attribute beachten im Formular-Editor nicht die im Modell hinterlegte Sichtbarkeit
If an attribute is marked as "Mandatory" in the model but is assigned a different visibility setting in the Create or Edit view (e.g., "Read-only" or "hidden"), it will not be taken into account when the corresponding form is displayed later, and the field displayed for it will therefore always be editable.
However, there may be cases where this “Mandatory” attribute should be set to “hidden” in the “Create” view if it is to be populated via a TL-Script expression during creation.
Similarly, a “Mandatory” attribute may need to be set to “Read-only” after it has been populated.
Currently, this is only possible if a custom form definition is created where the visibility is explicitly set for the field (!= default visibility).
The visibility stored in the model should also be applied to attributes that are mandatory.
Test
TestAttributeVisibilityAttributes.script.xml