General Plugin Setup in the Manifest

FormIt plugins are composed of a key core component called a manifest.json file.

The manifest file is a JSON object that tells the FormIt infrastructure what files to fetch and what kind of plugin to create.

Manifest.json Structure and Properties

A manifest.json file has the following structure. It has additional properties depending on whether it's a toolbar-based or an HTML panel-based plugin.

{
    "PluginName": "[PluginName]",
    "PluginType": "[PluginType]"
    "PluginDescription": "[PluginDescription]",
    "Scripts": [
        "PLUGINLOCATION/[script1].js",
        "PLUGINLOCATION/[script2].js",
        ...
        "PLUGINLOCATION/[scriptn].js"
    ]
}               

A typical plugin includes these JSON properties:

  • "PluginName" represents the name of the plugin for internal and most display purposes, including for the Plugin Manager.

  • "PluginType" represents the type of the plugin, letting users know in the Plugin Manager description what to look for when they install the plugin.

  • "PluginDescription" is displayed in the Plugin Manager to communicate the plugin's capabilities.

  • "Scripts" lists the required external scripts associated with the plugin that will be loaded into the FormIt application and can be executed when plugin functionality is invoked.

Start your plugin development by creating a manifest.json file in your plugin folder. Next, you'll need to decide whether you are making a toolbar-based or panel-based plugin.

Note: The use of PLUGINLOCATION throughout the manifest.json file above is essential and is case sensitive. FormIt will replace PLUGINLOCATION with the server location for the plugin.

Last updated