Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x] Add accepted_if validation rule #9557

Merged
merged 3 commits into from
Feb 21, 2024
Merged

[4.x] Add accepted_if validation rule #9557

merged 3 commits into from
Feb 21, 2024

Conversation

robdekort
Copy link
Contributor

@robdekort robdekort commented Feb 21, 2024

Adds the accepted_if validation rule to the field validation options. It turns out this exists and it's quite handy!

You can use this with the toggle fieldtype. E.g: toggle needs to be accepted (true) based on the value of another field.

@robdekort robdekort changed the title Accepted if [4.x] Accepted if Feb 21, 2024
@robdekort robdekort changed the title [4.x] Accepted if [4.x] Add accepted_if validation rule Feb 21, 2024
@jasonvarga jasonvarga merged commit 78d8f4b into statamic:4.x Feb 21, 2024
17 checks passed
@robdekort robdekort deleted the accepted-if branch February 21, 2024 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants