
How to set text field max length from javascript (programmatically ) in MS Dynamic CRM 2016
Thanks in Advance
*This post is locked for comments
I have the same question (0)Do you want to actually change the field's max length in the schema or just limit its length on a given form? Hoping you just want to do it at the form level. If so, add an OnChange event and check the length of the value.
if (Xrm.Page.getAttribute("field").getValue().length > 10) {
//do something
}