Detail
#26463
Form editor / Model: Dynamic Mandatory Annotation
Checks can already be annotated in the model, where you can specify, for example, that a field (e.g. date) must not be empty if a certain value has been selected in another field (e.g. contract type).
These checks are also taken into account in the form, but are only checked for changed fields.
This means that if a corresponding contract type is selected in the above example, the user is not informed that he must now also enter the date. The field now dynamically becomes a mandatory field, but it is not highlighted visually, as only a general check is annotated, which has no effect on the display of the field. Only when the form is saved is the check performed on this field and the field is then marked as containing errors.
If you could define fields as "dynamically mandatory", you could make the date field visually indicate that it is mandatory in the current constellation.
Test
- com.top_logic.demo/src/test/java/test/com/top_logic/demo/scripted/model/attribute/TestDynamicMode.script.xml