ulion / jsonform

Build forms from JSON Schema. Easily template-able. Compatible with Twitter Bootstrap out of the box.
http://ulion.github.io/jsonform/playground/
MIT License
49 stars 27 forks source link

{{name}} in tabarray after change in select #41

Open StacyMader opened 6 years ago

StacyMader commented 6 years ago

I would like to display the option selected in the parent tab of a tabarray as shown below. However, I'm not able to see how it is done. Any suggestions?

Thanks, Stacy.

`{ "schema": { "templates": { "type": "string", "enum": ["Standard","Fold","Search"], "default": "Standard" }, "standard": { "type": "string", "title": "Standard setting" }, "fold": { "type": "string", "title": "Fold setting" }, "search": { "type": "string", "title": "Search setting" } }, "form": [ { "type": "tabarray", "items": {

    "type": "section",
     "legend": "{{idx}}. {{value}}",

    "items": [
       {
        "type": "selectfieldset",
        "title": "Select Template",

        "items": [
          { 
            "key": "standard",
            "legend": "Standard"
          },
          { 
            "key": "fold",
            "legend": "Fold"
          },
          {
            "key": "search",
            "legend": "Search"
        }
      ]
      }
    ]
  }
}

] } `