Versions Compared

Key

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

...

form_settings with Individual channels format:

This is example of Milesight AM107 template which was updated so that now user can not only select Temperature channel units but also now can set Barometric Pressure units.

Code Block
[
  {
    "order": 0,
    "label": null,
    "variables": [
      {
        "order": 0,
        "label": "Temperature Unit",
        "type": "string",
        "min": null,
        "max": null,
        "form": "select",
        "key": "child.3.unit",
        "default_value": "f",
        "required": true,
        "values": [
          { "value": "f", "label": "°F", "short": "°F" },
          { "value": "c", "label": "°C", "short": "°C" }
        ]
      },
      {
        "order": 1,
        "label": "ProbeBarometric pressure Unit",
        "type": "string",
        "min": null,
        "max": null,
        "form": "select",
        "key": "child.713.unit",
        "default_value": "fhpa",
        "required": true,
        "values": [
          { "value": "fpa", "label": "°FPascal", "short": "°FPa" },
          { "value": "chpa", "label": "°CHectopascal", "short": "°ChPa" }
        ]
      }
    ]
  }
]

where 3 is the channel as indicated by:

...