Mandatory attributes events

Hi Team,

I have two sections address and region,

In address section I have add button  to add each address,

I have save button finally to submit all data.

Region section I have mandatory fields (Mandatory true)

When I am adding each address one by one ,It is asking me to enter region,But I have not clicked on save yet.

Region is mandatory But It should be validated on save button and not on add of address.

Please let me know how can I do this.

Hi ujwala,

the best way to control a mandatory field is to set its Mandatory property to a variable (i.e. IsRegionMandatory)

In this scenario by default, the variable IsRegionMandatory should be false.

After you save an address, set IsRegionMandatory  to true and refresh the block.


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.