Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

It is important that you include the Formio.use(yourModuleName) inside of your custom component, as CHEFS will not be able to use your module without knowing it’s variable name.

Prototype

Import Data

Currently, there is a working prototype of this solution. When importing a components module, you must specify how the builder can use it, like so:

...

Code Block
{
  "components": {
    "builder": {
      "customControls": {
        "simplefile": {
          "userType": {
            "blacklist": ["public"]
          }
        },
        ...
Administrator

As an administrator, you can import new modules, update existing ones, and toggle whether a module is enabled or not.

...

User

As any user of the system, authenticated or not, you will need to load form modules when viewing a form.

...

Modules will be imported from an external source specified by each form module version. Once complete, CHEFS will register the components and re-render the form builder. A form version is a version of a form that can’t be modified as it is published and can be accessed for form submission. Each form version will also use the same form module versions it was published with. This way, you’ll always see form submissions and the form the same way it was published.