formio / angular

JSON powered forms for Angular
https://formio.github.io/angular-demo
MIT License
640 stars 469 forks source link

[Question] Form Builder: disable specific properties on Edit Form for all input types #710

Closed drosophila-melanogaster closed 8 months ago

drosophila-melanogaster commented 3 years ago

Hello,

One year ago a user asked the same thing in a comment here, but he didn't get a proper response. When using Form Builder, is it possible to disable specific properties on Edit Form for all input types at once?

We have this to disable the API tab:

{
  editForm: {
    textfield: [
      {
        key: 'api',
        ignore: true
      }        
    ]
  }
}

Do we have anything like this?

{
  editForm: {
    __default__: [
      {
        key: 'api',
        ignore: true
      }        
    ]
  }
}
travist commented 3 years ago

We do not, but it could be added by changing this line

https://github.com/formio/formio.js/blob/master/src/WebformBuilder.js#L1264

Should be a pretty simple fix and submit a pull request and we will review it on our end.

ZenMasterJacob20011 commented 8 months ago

Closing this thread as it is outdated. Please re-open if it is still relevant. Thank you for your contribution!