Selection field with active/not active option
-
Hello,
Would it be possible to add to the selection field an option if a selection is active or not? Because I work with a list of actions for a full year. Once that action has passed its time, I want to deactivate it and activate it again for next year.
That would be a practical addition. You could add a boolean field such as Active / Inactive (or is_active) to each selection item.
For example:
Action
Active
Summer campaign 2026
✅ Yes
Christmas event 2025
❌ No
Annual inspection
✅ Yes
Behavior could work like this:
- Active = Yes
- The item appears in the selection list and can be chosen.
- Active = No
- The item remains stored in the database.
- It is hidden from the selection list (or shown as disabled).
- It can be reactivated later without recreating it.
An alternative that may fit yearly planning even better is to combine it with validity dates:
‘active_from’ => ‘2026-01-01’,
‘active_until’ => ‘2026-12-31’That way actions can automatically become active or inactive based on the year without manual switching.
For your use case (a recurring annual action list), I’d keep both:
- Active/Inactive switch → manual control
- Optional date range → automatic activation/deactivation if needed later.
The page I need help with: [log in to see the link]
- Active = Yes
You must be logged in to reply to this topic.