Import Action: How to remove the example download link or add multiple rows to the example CSV?

I have to import a CSV with multiple types of value to support in one column so I need to add at least 3 example rows in the downloadable example CSV. Is it possible to add multiple rows to it? If not is there a way to disable the example CSV altogether? I will use Placeholder to attach a link to my example CSV file. The doc just has the example of adding value to 1 row. https://filamentphp.com/docs/3.x/actions/prebuilt-actions/import#providing-example-csv-data
Solution:
ImportAction::make() ->modalDescription(null)...
Jump to solution
5 Replies
vanhellsing101
vanhellsing1013mo ago
Well, looks like to disable it we can provide an empty modal description to the Import Action but still feels like a hacky way to do it. It would be better if we could control the example csv
Solution
Sandeep
Sandeep3mo ago
ImportAction::make() ->modalDescription(null)
Sandeep
Sandeep3mo ago
Using this you can remove the download link
vanhellsing101
vanhellsing1012mo ago
Yeah, that's what I mentioned above. But still, it would be better if they allowed to add multiple rows for the example csv.
vanhellsing101
vanhellsing1012mo ago
I let it open to see if there was any solution other than that but looking at the code itself it seems only 1 row support is coded into the import action itself.