---
name: "Embperl::Form::Control::tabs"
section: "3pm"
platform: "linux"
package: "libembperl-perl"
version: "2.5.0-17"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/Embperl::Form::Control::tabs"
---

# Embperl::Form::Control::tabs(3pm)

A tab control inside an Embperl Form

## NAME

Embperl::Form::Control::tabs - A tab control inside an Embperl Form

## SYNOPSIS

```
            Embperl::Form -> add_tabs (
                [
                    {
                    text => 'First Tab',
                    fields => [
                              ...
                              ]
                    },
                    {
                    text => 'Second Tab',
                    fields => [
                              ...
                              ]
                    }
                ])
```

## DESCRIPTION

Control to display tabs at the top of the form and control the switching between sub forms. The switching is done by Javascript, so it can only be used in environment where Javascript is available.

You can use the method Embperl::Form -\> add\_tabs to setup a tabbed form. See Embperl::Form on how to specify parameters.

### PARAMETER

*text*

Text that will be displayed on the tab

*fields*

List of fields that should be displayed in this subform. Given in the same form as form Embperl::Form.

## Author

G. Richter (richter at embperl dot org)

## See Also

[**perl**(1)](/perl/1.md), Embperl, Embperl::Form
