dynamic readonly

dynamic readonly

montoyammontoyam Posts: 568Questions: 136Answers: 5

I want some fields to be read-only depending on another field value.

                {
                    name: "FundOrgDeptGroup_Detail.UsesLAN", type: "checkbox",
                    options: [{ label: "Uses LAN" , value:1}],
                    separator: '',
                    unselectedValue: 0
                },

So if FundOrgDeptGroup_Detail.IsLocked = 1 then I want the field above (and other fields) to have type: "readonly"
Is this possible?

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,146Questions: 1Answers: 2,586
    Answer ✓

    This example from this thread should help.

    In that example it's changing the field type between select and text (the default) based on a value, yours would be doing the same, but changing the field type to be readonly,

    Hope that helps,

    Colin

This discussion has been closed.