setDisable for all fields of a Section in a Crm Form
I need to disable a section if a value from other field is true, normally I would do: function disableSection1(disabledStatus){ Xrm.Page.getControl("section1field1").setDisabled(disabledStatus); Xrm.Page.getControl("section1field2").setDisabled(disabledStatus); Xrm.Page.getControl("section1field3").setDisabled(disabledStatus); Xrm.Page.getControl("section1field4").setDisabled(disabledStatus); } but i have to do this for many sections, so I am looking for a function like this: function sectionSetDisabled(tabNumber, sectionNumber, disabledStatus){ //some code.. } Most answers I have seen you