The tab field type is designed specifically for use within the fields.
If there's an error in another tab, like an empty but required field, the tab will be automatically switched.
$ cd /your/kirby/installation
$ kirby plugin:install afbora/Kirby-Tabs-Field
$ cd /your/kirby/instalation/site/fields
$ git clone https://github.com/afbora/Kirby-Tabs-Field.git tabs
$ cd /your/kirby/instalation/
$ git submodule add https://github.com/afbora/Kirby-Tabs-Field site/fields/tabs
Simply download this repository and extract it into /your-kirby-installation/site/fields/
.
title: Project
pages: true
files: true
fields:
tab1:
label: General
type: tabs
title:
label: Title
type: text
text:
label: Text
type: textarea
tab2:
label: Details
type: tabs
technologies:
label: Technologies
type: textarea
link:
label: Link
type: url