Hi,
i would like to enable sectionitems in a disabled form. I tried overriding the isDisabled method for the section item but that did not seem to work. See the code below, should I do this in another way maybe?
(btw, I also tried with a custom SectionItem extended the sc SectionItem but that did not help)
i would like to enable sectionitems in a disabled form. I tried overriding the isDisabled method for the section item but that did not seem to work. See the code below, should I do this in another way maybe?
(btw, I also tried with a custom SectionItem extended the sc SectionItem but that did not help)
Code:
isc.DynamicForm.create({
width: 500,
disabled: true,
fields: [
{name: "text1", title: "Text1", type: "text"},
{name: "section", title: "Section", type: "section", itemIds:['text2', 'text3'],
isDisabled: function() {return false;}},
{name: "text2", title: "Text2", type: "text"},
{name: "text3", title: "Text2", type: "text"}
]
});
Comment