Accessing the parent model #1155
Answered
by
danharrin
anishsarkar
asked this question in
Help
-
|
How does one access the parent model from a relationship form? I have some user groups, like faculty, student etc. In profile relationship of the user, if the user type is faculty, there are couple of extra fields, such as office, office_telephone etc,. So, I have made a profile form with those fields and want to show them conditionally if the user is of faculty type. Any pointers? Thanks in advance for help. |
Beta Was this translation helpful? Give feedback.
Answered by
danharrin
Jan 6, 2022
Replies: 1 comment 4 replies
-
|
Try this on the field/s you want to show: https://filamentadmin.com/docs/2.x/forms/advanced#using-closure-customisation |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
anishsarkar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try this on the field/s you want to show:
https://filamentadmin.com/docs/2.x/forms/advanced#using-closure-customisation