AX2012 R2 Forms : Add a field to CustTable form and show field only if the recordtype is "Organization"

I have added a new field on Custtable. i want to make this field visible on the CustTable form only if the recordtype is Organization. Where or how to specify to visible only for the record type Organization. Any help is appreciated.

i am using AX 2012 R2 CU7 Version.

Thanks

In general, you want to trigger such logic in datasource’s active() method (so it gets re-evaluated when you switch to another record). Look at what code is already there, to find the best place.

How to hide it? By something like this:

this.object(fieldNum(CustTable, Field1)).visible(isOrganization);

Thanks Martin, it worked. i have multiple fields which i grouped to show for Organization. Now i want to hide the group if the Customer is not Organization. How can i achieve this. Thanks for your help.

I would still do it at field level, because that’s handles all occurrences in the form. (For example, one field may be displayed in a group on a tab and also in a grid.)