73
rated 0 times
[
76]
[
3]
/ answers: 1 / hits: 22638
/ 10 Years ago, fri, july 11, 2014, 12:00:00
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..
}
More From » dynamics-crm-2011