Is it possible to add paramaters to an import action?

I want to achieve the following: I got an contact_group and on that contact_group i want to import contacts and attach the imported contacts directly to the specific contact_group. What i tried: I make use of the Filament Import Action and have configured this one but right now i add in every import csv an column contact_group_id and that is how they are attached to a specific contact_group but it is working, but i think it should be easier because i already importing on a contact_group. Question: Is it possible to add a parameter to the import action so i don't have to manually add the id in every import and how will i able to do that, creating an action instead of using Filament Import?
No description
1 Reply
toeknee
toeknee5mo ago
There is a post in here somewhere where I provided info on how to do similar. This is import Options too: https://filamentphp.com/docs/3.x/actions/prebuilt-actions/import#using-import-options