Archive for April 6th, 2009

Hiding and Showing Fields on CRM Form

Monday, April 6th, 2009

To hide fields on a Dynamics CRM form you should use the next two statements.

crmForm.all. fieldname_c.style.visibility=’hidden’;
crmForm.all. fieldname _d.style.visibility=’hidden’;

You can put this on filed Change or Form OnLoad/OnSave event script. Also, you can define it visible again:

crmForm.all. fieldname_c.style.visibility=’visible’;
crmForm.all.fieldname _d.style.visibility=’visible’;