Microsoft Dynamics CRM

Get Hidden field names on form: Dynamics CRM 2011/2013

This script will alert all hidden field names on form:

var attributes = Xrm.Page.data.entity.attributes.get();

var hiddenAttributes = ”;

Xrm.Page.ui.controls.forEach(function (control, index)

{ if (control.getVisible() == false) { hiddenAttributes += control.getName() + ‘,’;

   }

} );

alert(hiddenAttributes);

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s