2026 Community Survey results are here! See how the Craft CMS community works. results are live!

Create a free account to get access to additional free training videos. Enjoy this free video from CraftQuest! Create a free account to get access to additional free training videos. Join the Community

Creating a Dynamic Select Element

In this lesson we answer a Craft CMS Stack Exchange question about how to create a dynamic dropdown of years based on a start date. We learn about the range operator in Twig and how we can use it in different places to get the result we want.

Transcript

Premium

Follow along with the full transcript

Search every word, click any line to jump to that moment, and read along as you watch — a CraftQuest Premium feature.

Sign up for Premium
Instructor
Date Published
January 13, 2020

Some stuff to help you along during the lesson: