fieldenms/tg

Entity centre: crit-only SINGLE to support custom requiredness messages

Closed this issue · 0 comments

01es commented

Description

Crit-only SINGLE properties support validation (#979). Issue #1761 introduced support for setting customer requiredness messages MetaProperty.setRequired(final boolean required, final String errorMsg). However, if requiredness is changed dynamically for a crit-only property, a custom message is not propagated and the default error message is displayed instead.

  • 1. Adjust the current behaviour to correctly propagate dynamic custom requiredness messages in application to crit-only properties, which are assigned via a corresponding meta-property.

  • 2. Ensure that custom requiredness messages at the level crit-only property definition, specified as part of @Required, get propagated correctly and can be overridden with MetaProperty.setRequried(true, <dynamic custom message>).

Expected outcome

Ability to apply custom requiredness validation message for crit-only SINGLE properties.