Ability to set lightswitch value to an environment variable #8866
-
DescriptionIt would be great if there was some way to easily include a lightswitch input that has the ability to be set to a boolean-like environment variable. Admittedly, I'm having a hard time imagining what this UI would look like, but I think it's an important feature when project config makes plugin settings inaccessible. The most obvious use-case is for "dev mode" type lightswitches. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
I’m not sure I’m following… can you give me a more concrete example? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
This could also be useful for other fieldtypes. |
Beta Was this translation helpful? Give feedback.
-
Noticed Zapier has a pretty elegant solution for this sort of thing. In their case you might want to pull in a boolean value from a prior step in the zap, which is sortof like needing to pull in an environment variable. We’re going to get this into v4. |
Beta Was this translation helpful? Give feedback.
-
Just resolved this a little ahead of schedule, for the next Craft 3 release 🚀 See details at #10111 |
Beta Was this translation helpful? Give feedback.
Just resolved this a little ahead of schedule, for the next Craft 3 release 🚀
See details at #10111