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

From Visual Data Wiki
Jump to navigation Jump to search
(Created blank page)
 
No edit summary
Tag: 2017 source edit
 
(5 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": {
        "School district": {
            "name": "",
            "school district manager": "",
            "id increment": "275"
        },
        "School": {
            "belongs to": "216",
            "name": "",
            "description": "",
            "school principal": "",
            "teachers": [],
            "id increment": "276"
        },
        "School class": {
            "belongs to": "585",
            "class": "",
            "class teacher": "",
            "number of pupils": 20,
            "id increment": "277"
        }
    },
    "schemas-data": {
        "untransformed": {
            "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...