Hide 2 rows from ax on open of the form

Use query ranges to filter out data. For example, you can use code like this in datasource’s init():

FieldId idTypeFieldId = fieldNum(MyTable, IdentificationType);

this.queryBuildRange().addRange(idTypeFieldId).value(SysQuery::valueNot(MyIdentificationType::InsuranceCard));
this.queryBuildRange().addRange(idTypeFieldId).value(SysQuery::valueNot(MyIdentificationType::LaborCard));

Of course, you tell us little about your form, therefore I had to make up a few things. You’ll have to adjust the solution to match your situation.