Accessing container form from a field #286
Answered
by
bennothommo
robballantyne
asked this question in
Q&A
-
It's probably simple but driving me mad. I have a nested form with a partial inside, from the partial i naturally have $field available, but I would like to figure out how to identify (and get data from) another field in that form. Is there a simple way to do this? |
Beta Was this translation helpful? Give feedback.
Answered by
bennothommo
Aug 25, 2021
Replies: 1 comment 7 replies
-
@robballantyne You could just query the model directly for the data if you know the field name. For example, if the field is for the property |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
LukeTowers
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@robballantyne You could just query the model directly for the data if you know the field name.
For example, if the field is for the property
name
, you could just use$model->name
in your partial.