Skip to main content
Removed tag.
Link
Matt Stein
  • 4k
  • 3
  • 27
  • 57
Source Link
andrew.welch
  • 11.6k
  • 24
  • 31

Default field values?

This seems so simple, but after reading over the docs, I couldn't find an answer:

Is there a way to have a field have a default value in Craft?

In my case, I have a Lightswitch field that I want to be on by default, so my client doesn't have to turn it on every time they publish an asset. But they still do need the ability to turn it off in exceptional cases.

I realize I could just reverse the logic of the field, but it raises a broader question of default field values (which would be useful to me).