---
name: "Embperl::Form::ControlMultValue"
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::ControlMultValue"
---

# Embperl::Form::ControlMultValue(3pm)

Base class for controls inside an Embperl Form which have multiple values to select from, like a select box or radio buttons.

## NAME

Embperl::Form::ControlMultValue - Base class for controls inside an Embperl Form which have multiple values to select from, like a select box or radio buttons.

## SYNOPSIS

Do not use directly, instead derive a class

## DESCRIPTION

This class is not used directly, it is used as a base class for all controls which have multiple values to select from inside an Embperl Form. It provides a set of methods that could be overwritten to customize the behaviour of your controls.

## METHODS

### get\_values

returns the values and options

### get\_datasource\_controls

returns additional controls provided by the datasource object e.g. a browse button

### get\_active\_id

get the id of the value which is currently active

## PARAMETERS

*values*

Arrayref with the values to select from. This is what gets submited back to the server.

*options*

Arrayref with the options to select from. This is what the user sees.

*datasrc*

Name of an class which provides the values for the values and options parameters. Either a full package name or a name, in which case all packages which are returned by Embperl::Form::get\_datasrc\_packages are searched. Everything after '#' is ignored and can be used by the DataSource module to do further selections.

*no\_datasource\_controls*

Disables the output of the additional controls

## AUTHOR

G. Richter (richter at embperl dot org)

## SEE ALSO

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