Custom table action for related resources
I have missions and goals components. In the missions component, I created a "Create Goal" table action which renders a modal to add a goal for that mission. When I click submit, it wants to add the record to the missions table, not the goals table. Here's my action code. How do I get it to save to the goals table, also, how do I pass the mission_id to this action?
3 Replies
maybe just create your own Action instead of CreateAction
if I change it from CreateAction to just Action, nothing happens when I click on the action.
you have to define your own action() function