Skip to content

Commit

Permalink
Documenting the new RequiredIfDeclined validation rule (framework PR …
Browse files Browse the repository at this point in the history
…#51030) (#9579)
  • Loading branch information
timmydhooghe authored Apr 16, 2024
1 parent ae7f39a commit 5117d93
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -948,6 +948,7 @@ Below is a list of all available validation rules and their function:
[Required](#rule-required)
[Required If](#rule-required-if)
[Required If Accepted](#rule-required-if-accepted)
[Required If Declined](#rule-required-if-declined)
[Required Unless](#rule-required-unless)
[Required With](#rule-required-with)
[Required With All](#rule-required-with-all)
Expand Down Expand Up @@ -1732,6 +1733,11 @@ If you would like to construct a more complex condition for the `required_if` ru

The field under validation must be present and not empty if the _anotherfield_ field is equal to `"yes"`, `"on"`, `1`, `"1"`, `true`, or `"true"`.

<a name="rule-required-if-declined"></a>
#### required_if_declined:_anotherfield_,...

The field under validation must be present and not empty if the _anotherfield_ field is equal to `"no"`, `"off"`, `0`, `"0"`, `false`, or `"false"`.

<a name="rule-required-unless"></a>
#### required_unless:_anotherfield_,_value_,...

Expand Down

0 comments on commit 5117d93

Please sign in to comment.