How to show/hide filedXrm.Page.ui.controls.get("city").setVisible(true/false);How to clear filedXrm.Page.getAttribute("city").setValue(null);How to enable/disableXrm.Page.ui.controls.get("city").setDisabled(true/false);Modify Field Label Tooltipdocument.getElementById("field_name_c").setAttribute("title","tooltip text");Modify Lookup Button Tooltipdocument.getElementById("field_name").setAttribute("title","tooltip text”);
Set required Filed
function SetRequirementLevelNon(fieldName) { var type = Xrm.Page.data.entity.attributes.get(fieldName); type.setRequiredLevel("none"); } function SetRequirementLevel(fieldName) { var type = Xrm.Page.data.entity.attributes.get(fieldName); type.setRequiredLevel("required"); }
Google Anlatics
Thursday, June 27, 2013
CRM 2011 with JavaScripts
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment