on 07-07-2016 11:30 AM
How can I define that an input field is mandatory in HMC? I tried to add the parameter optional="false" to the items.xml:
<attribute type="valueCode" qualifier="valueCode">
<modifiers read="true" write="true" optional ="false"/>
<persistence type="property" />
</attribute>
But it doesn't work.
Hi, Felix,
One way is to create an annotation for this attribute.
For example, in the hybris 6.0 core trail, an annotation NotEmptyCuppy created and used to make the field Name not empty. More details steps, please refer to
Regards
Haitao
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.