I'm building a form editing page using the Formio editor and renderer.
I'd like to make specific form fields mandatory in the form editor. [different than making the field entry mandatory during submission]
There are two roles in the application -
Editor - Modifies the formio definition.
User - Submits the form data.
I'm specifically interested in making several 'meta-data' fields mandatory for the Editor. The Editor should not be able to remove certain fields from the formio component list.
A couple options I'm considering for implementation -
Has anyone implemented this?
You seem to be going in the right direction. You can definitely do (as you suggested):
Along with this, you can also extend the form builder and remove the "remove" icon that appears in the builder next to these mandatory components. To do this,