Announcement

Collapse
No announcement yet.

FormDependency for ReadOnly status and for new record.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

  • #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


    • #3
      BTW In future I want to add additional more flexible FormDependency syntax.

      Comment

      Working...
      X