Versions Compared

Key

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

...

Extra fields are controlled using the Form Schema feature. Create a new schema file: /usr/local/opmojo/conf/form_schemaschemas/admin_nodes.json  (adjust path to suit your installation location).

...

Code Block
{
    "label": "Custom node fields",
    "description": "Edit in conf/form_schemaschemas/admin_nodes.json",
    "component": ["node_admin"],
    "tags": ["node"],
    "schema": {
        "configuration.customerId": {
                "title": "Customer ID",
                "type": "Text"
        },
        "configuration.contact": {
            "title": "Contact Person",
            "type": "Text"
        },
        "configuration.service_level": {
            "title": "ContactService PersonLevel",
            "type": "Select",
            "typeoptions": ["Aluminium", "Steel", "Carbon_Fiber", "TextTitanium"]
        }
    }
}

Note that each field key must have prefix 'configuration.'

...