What is a proper way to pass additional parameters into Hidden element from the ownerRecord?
I have a self referencing
Category
model (id, parent_id). All of the Categories and Sub-Categories belong to the single Menu
model. I am using RelationManager to solve the self referencing relationship but not sure how to pass menu_id
from the ownerRecord
during creation of a sub-category.
Here is how my RelationManager looks like.
2 Replies
I have ended up with this but not sure if there is a better way to achieve the same. 🙂
You probably shouldn’t use hidden but a lifecycle hook if this shouldn’t be manipulated by the user