How to exceed 50 characters maximum label length limitation to set a long label for the Dynamics 365 CE fields.

How to exceed 50 characters maximum label length limitation to set a long label for the Dynamics 365 CE fields. 


 As we know there is a 50 characters maximum length limitation for the fields(columns) labels of entities(tables) in Dynamics 365 CE.

Sometimes, we may need a longer label than 50 characters. How to do that?

Below two options could be your reference.



Option 1:

Change the label in Field Properties.

The maximum length can reach 100 characters.



Option 2: 

Using JS to change the label can give you as long labels as you want.

That is to say, there seems like no maximum limitation. (Please correct me if you find I am wrong. Thanks).




JS:

function extendLabelLength(executionContext) 

{

    var formContext = executionContext.getFormContext();        

    formContext.getControl("field name").setLabel("set yout labels here");

}

Triggered when form - on load.


See below video for more details.




No comments:

Post a Comment