function

Select

Select creates a field for choosing one value from a fixed list. Values are stored exactly as given; display labels are generated during resolution. Use Options to configure custom labels or translations.

Arguments

ArgumentTypeDescription
namestringThe name value.
values[]stringThe values value.

Returns

The declared result.

SelectField

Full signature

func Select( name string, values ...string, ) SelectField

Source field/fluent.go:822

Related types

  • SelectField

    SelectField configures a field for choosing one value from a fixed list.

Related guides