Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Enabled section items in a disabled form

    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)

    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"}
    ]
    });

    #2
    You can't have enabled items in a disabled form, but you can disable all other items except the ones you want enabled.

    Comment

    Working...
    X