How To : Set All The Fields On A Form Required Using Java Script in CRM

//Set All The Fields To Required
function MakeAllAttributesRequired()
{
var attributes = Xrm.Page.data.entity.attributes.get();
for (var i in attributes)
{
attributes[i].setRequiredLevel("required");
}
}

Leave a Reply

Your email address will not be published. Required fields are marked *