Skip to main content

Set Not Required All Field From Form CRM 2011



function MakeAllAttributesNotRequired() {
    var attributes = Xrm.Page.data.entity.attributes.get();
    for (var i in attributes) {
        attributes[i].setRequiredLevel("none");
    }
}

Comments