cancel
Showing results for 
Search instead for 
Did you mean: 

How to make custom attribute mandatory in editor area xml?

0 Kudos
423

Hi Folks,

Is there any way i can make custom attribute mandatory in product cockpit?

like i can add something required="true" in editor area xml.

I do not want to put restriction in items.xml or DB level.

Thanks!

========== Regards, Arpit

View Entire Topic
former_member760554
Discoverer
0 Kudos
INSERT_UPDATE AttributeConstraint;id[unique=true];annotation[allownull=true];descriptor(enclosingType(code),qualifier);qualifier;severity(code,itemtype(code));target;type(code)
;CustomerName;de.hybris.platform.validation.annotations.NotBlank;Customer:name;name;ERROR:Severity;de.hybris.platform.core.model.user.CustomerModel;Customer


Here is the example that you can apply for any of your similar requirement. After importing this you have to reload the validation engine