INTRO

INTRO

New

Intro to Dynamic Content

Intro to Dynamic Content

New

1:36

Intro to Webflow CMS

Intro to Webflow CMS

New

2:02

CMS Collections

CMS Collections

New

CMS Collections

CMS Collections

New

2:05

Importing Collection Items

Importing Collection Items

New

1:48

Designing with Collections

Designing with Collections

New

Collection List

Collection List

New

3:33

Collection Page

Collection Page

New

3:01

Modifying Collections

Modifying Collections

New

Modifying a Collection

Modifying a Collection

New

2:05

Intro to the Editor

Intro to the Editor

New

2:22

CMS Collection Fields

CMS Collection Fields

New

Plain Text Field

Plain Text Field

New

0:51

Rich Text Field

Rich Text Field

New

1:16

Image Field

Image Field

New

1:24

Video Field

Video Field

New

0:39

Email Field

Email Field

New

0:47

Link Field

Link Field

New

1:26

Phone Field

Phone Field

New

0:43

Number Field

Number Field

New

1:27

Date/Time Field

Date/Time Field

New

1:38

Switch Field

Switch Field

New

0:58

Option Field

Option Field

New

1:25

Color Field

Color Field

New

0:38

Reference Field

Reference Field

New

1:11

Multi-reference Field

Multi-reference Field

New

2:31

Advanced Dynamic Content

Advanced Dynamic Content

New

Filtering Collection Lists

Filtering Collection Lists

New

2:47

Conditional Visibility

Conditional Visibility

New

2:43

new course
CSS grid landing page tutorial (36min)

Lesson info

Lesson info

The option field is a CMS field used in Collections. It gives collaborators a list of predefined values to choose from.

Explore this project

Want to dig into the project featured in this video and see how everything is put together? We've included the full project we used when making this lesson, and we've shared the link right under this very paragraph.

View and clone this projectDownload lesson assets
Clone this projectDownload project assets

Transcript

The option field is built for any number of options you can select from a dropdown. Things like selecting from blog categories. Or choosing a preferred language. Setting a location — like what continent you're on. It's also great if you need to get info regarding gender, or maybe the department someone works in. Or something that contains fixed numbers. Or even number ranges like how many employees. And of course, we can do coffee sizes. And no, 31 ounces is not a typo.

A couple ways to practically use this. Number one: on the Canvas here, we can bind a text element to this field, getting the option text from the collection.

Of course, number two: we can also use a filter to display Collection List items based on the option we selected. In Filters, we'll add a filter. And when we select our option field from the dropdown, there are two approaches to doing this:

Equals or Does Not Equal will check against the Option field for a particular selection. And Is Set or Is Not Set simply looks for whether an option has been set in this field at all.

Now if we find ourselves adding options that like to stick together? Maybe we want to link a color to each blog category? We could just create a collection for blog categories. And instead of an option field, we could use a reference or multi-reference field.

But option fields are nice for giving us multiple, preset options which we can bind to text elements and use to filter content (or even create conditions) in a Collection List.