Mandatory Fields issue

Hi All,

Form opening init() I made 2 fields mandatory.

Ex: Field1 , Field2 ( fields record are Girid)

Here the requirement is user will enter the Either or field in records.

when ever user has enter a values in field2 once he want to remove and enter in Field1 not allowing to move to field1.

here system wanna allow to move to Field1. Once user enter the value in either one field has make another not mandatory field.

how can do this.

i suggest to override tableName.validateWrite() method. put your logic there and produce a checkFailed(“Str”);