CRM 2011 – How to set an attribute label in Javascript

It took me a while to figure this out but finally thanks to this forum post I did it.  I think what was confusing me was you had to get the control and then set the label.

var affectedControl = Xrm.Page.ui.controls.get(fieldname);

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

affectedAttribute.setRequiredLevel(‘required’);

affectedControl.setLabel(‘New label’);

Advertisements

How To Use Control Alt Delete in Remote Desktop

The question popped up today and I’m sure I had found another way round this before but I couldn’t remember.

After googling around I finally found the answer and was shocked it was so easy

You just press

Ctrl + Alt + End

this also works even if the screen isn’t full screen

Awesome