FormDependency for ReadOnly status and for new record.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • paladin80
    Junior Member
    • Aug 2014
    • 11

    FormDependency for ReadOnly status and for new record.

    It will be nice to have FormDependency rules to change fields to ReadOnly and back.

    Also user may want to have a simplified form view when creating a new record. FormDependency would be great instrument for this case, if it could track the "new record" status.
  • alasdaircr
    Active Community Member
    • Aug 2014
    • 525

    #2
    setReadOnly and setNotReadOnly already exist

    hide and show work with panels or fields. However by default, custom panels don't have a name property.

    Code:
    frontend/client/src/views/record/base.js
                switch (action) {
                    case 'hide':
    ...
                    case 'show':
    ...
                    case 'setRequired':
    ...
                    case 'setNotRequired':
    ...
                    case 'setReadOnly':
    ...
                    case 'setNotReadOnly':
    ...
            }

    Comment

    • yuri
      Member
      • Mar 2014
      • 8440

      #3
      BTW In future I want to add additional more flexible FormDependency syntax.
      If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

      Comment

      Working...