include current field value in dependsOn Patch #4302
-
|
It would be handy if the current value of the field depending on (not the field being depended on) could be sent with Handy in general if you need logic that depends on knowing the value of the field you're trying to update, but essential if you're trying to update the value in a KeyValue field |
Beta Was this translation helpful? Give feedback.
Answered by
crynobone
Nov 16, 2022
Replies: 1 comment
-
|
Implemented in 4.19.0 Text::make('Email')
->dependsOn('password', function ($field, $request, $formData) {
// access current field `$formData->email`
}), |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
crynobone
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Implemented in 4.19.0