i am doing the following in order to disable an accordian container:
For java script:
//Hide/Show Controls on Load ####
function SubProcOnLoadShowHideControls() {
if (fd.field('EntityRelatedToOrders').value === true) {
// Show Related Controls
fd.container('ChurchEntityAccordion').$children[1].disabled = false;
$(fd.control("SPChurchDT").$el).show();
fd.container('ChurchEntityAccordion').$children[2].disabled = false;
$(fd.field('CommitteeAndCouncilDecreeName).$parent.$el).show();
$(fd.field('MultipleControlsNames').$parent.$el).show();
} else {
//Hide Related Controls
fd.container('ChurchEntityAccordion').$children[1].disabled = true;
$(fd.control("SPChurchDT").$el).hide();
fd.container('ChurchEntityAccordion').$children[2].disabled = true;
$(fd.field('CommitteeAndCouncilDecreeName).$parent.$el).hide();
$(fd.field('MultipleControlsNames').$parent.$el).hide();
}
}
For the CSS i am using this script to hide accordian container disable children:
.accordion .disabled{
display: none;
}
the script is working.
I have an issue when i hide the controls and disable the accordian container children, still seeing a trace for the disabled children if i click them will expend but it is blank as the controls are hidden how to fix that the trace it should be hidden too
kindly check the attached pictures