Skip to Content
0
Jul 22, 2019 at 09:04 AM

Smart Field setMandatory method is not setting * mark on label

260 Views

Hello All,

I have a Smart Field defined inside a Smart Form defined like:

<smartForm:GroupElement>
     <smartField:SmartField id="idClosingNotes" value="{ClosingNotes}" app:multiLineSettings="{cols: 80, rows: 4}"></smartField:SmartField>
</smartForm:GroupElement>

When in edit mode, I need to change this field to mandatory field from the change event of another field. When I give this statement, it doesn't set the field label with * (mandatory) mark.

this.getView().byId("idClosingNotes").setMandatory(true);

Is this a bug in SmartField control or am I missing something?

BR, Ekansh