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.

Some stuff to help you along during the lesson:

Dozens of Courses Are Waiting

Invest in yourself, your career, and your ability to take knowledge and use it grow your business or earning potential.

Get everything in the catalog plus new videos every week. Just by signing up you get immediate access to hundreds of hours of learning.

Start CraftQuest

Image