I'm creating a form for changes. Technically speaking, it is an "edit" form. The private log is the only field which can be modified.
All other info should be read only.
I notice an "add attachment" option at the bottom ...
How can this be disabled - for this specific form only? (preferably not relying on a work-around of CSS)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Unfortunately you can't, as the attachments are a specific plugin which display themselves on the configured DM classes, there is no native way to remove them from a specific form.
That being said, you can do it with a bit of CSS / JS, but it's not perfect and not guaranteed to work on future versions.
- With the CSS, hide the attachments by using the right selector (check ID and data-xxx attributes on the form)
- With the JS, ensure to remove the attachments to avoid users from finding the
Hope it helps,
Guillaume
👍
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm creating a form for changes. Technically speaking, it is an "edit" form. The private log is the only field which can be modified.
All other info should be read only.
I notice an "add attachment" option at the bottom ...
How can this be disabled - for this specific form only? (preferably not relying on a work-around of CSS)
Hello Jeffrey,
Unfortunately you can't, as the attachments are a specific plugin which display themselves on the configured DM classes, there is no native way to remove them from a specific form.
That being said, you can do it with a bit of CSS / JS, but it's not perfect and not guaranteed to work on future versions.
- With the CSS, hide the attachments by using the right selector (check ID and data-xxx attributes on the form)
- With the JS, ensure to remove the attachments to avoid users from finding the
Hope it helps,
Guillaume