Pre-select form tab (if multiple schemas): Difference between revisions

From Visual Data Wiki
Jump to navigation Jump to search
(VisualData update)
No edit summary
Tag: 2017 source edit
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
If a page has multiple form schemas attached, you can pre-select the active tab with the parameter <code>selected-schema</code>


<syntaxhighlight lang="wikitext">
...
|selected-schema = School class
...
</syntaxhighlight>
{{#visualdataform: School district, School, School class
|title = Edit
|action = edit
|edit-page = {{{pagetitle}}}
|return-page = {{FULLPAGENAME}}
|view = popup
|popup-size = larger
|css-class =
|edit-freetext = false
|edit-categories = false
|edit-content-model = false
|edit-target-slot = false
|layout-align = top
|popup-help = true
|submit-button-text =
|layout =
|submit-button-text =
|validate-button-text =
|selected-schema = School class
}}
jsondata
Line 1: Line 1:
{
{
     "schemas": {
     "schemas": {
        "School district": {
            "name": "",
            "school district manager": "",
            "id increment": "275"
        },
         "School": {
         "School": {
             "belongs to": "216",
             "belongs to": "216",
Line 7: Line 12:
             "school principal": "",
             "school principal": "",
             "teachers": [],
             "teachers": [],
             "id increment": "272"
             "id increment": "276"
        },
        "School class": {
            "belongs to": "585",
            "class": "",
            "class teacher": "",
            "number of pupils": 20,
            "id increment": "277"
         }
         }
     },
     },
     "schemas-data": {
     "schemas-data": {
         "untransformed": {
         "untransformed": {
             "School/id increment": ""
             "School district/id increment": "",
            "School/id increment": "",
            "School class/id increment": ""
         }
         }
     }
     }
}
}

Latest revision as of 10:34, 16 May 2024

If a page has multiple form schemas attached, you can pre-select the active tab with the parameter selected-schema

...
|selected-schema = School class
...
form is loading...