Skip to content

create:field:radio

Rob Sanchez edited this page Mar 9, 2015 · 4 revisions

Create a Radio Buttons field.

$ eecli create:field:radio <label> <short_name> <field_group>

Arguments

label

The label of the field.

short_name

The short name of the field.

field_group

The ID or name of the field group.

Options

--instructions="Your instructions here."

Instructions for authors on how or what to enter into this field when submitting an entry.

--required

Make this field required.

--searchable

Make this field searchable.

--hidden

Make this field hidden.

--order="1"

Set this field's order.

--format="none"

none, br, or xhtml. Default: none.

--show_format

Show formatting dropdown on publish page.

--option="Foo"

One or more options. You may use this option more than once to provide multiple values.

--pre_populate="1"

Pre-populate the dropdown with values from this channel field ID.

Examples

Create a Radio field in field group 1

$ eecli create:field:radio "Your Field Name" your_field_name 1

Create a Radio field with multiple options

$ eecli create:field:radio --option="Foo" --option="Bar" "Name" name 1
Clone this wiki locally