Make Relation Manager for a belongsToMany Relation add records with a Dropdown instead of text input

Hi everyone, I believe this is a common scenario so I'm wondering if there is a straightforward way to do it instead of customizing the form in relation manager. I have a sellers table and a countries table containing the countries the sellers deliver to. It's a belongsToMany relation. I created a relation manager between the Country model and the Seller Model and added it in the SellersResource. When adding a new country in the Sellers page I don't want to allow the user to add a new country but select one from the countries page. What is the best way to go about this. I feel I misunderstood something.
Solution:
Replace the CreateAction with AttachAction in header actions?
Jump to solution
2 Replies
Solution
cheesegrits
cheesegrits16mo ago
Replace the CreateAction with AttachAction in header actions?
guitarnerd_
guitarnerd_OP16mo ago
Thank you!
Want results from more Discord servers?
Add your server