© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•10mo ago•
2 replies
Kaesa Lyrih

How to modify "Create Another" action in Filament to include a query parameter based on a form field

Question:

I'm using FilamentPHP and I want to enhance the "Create Another" behavior when creating a resource (e.g.,
Product
Product
). Specifically, I'd like to redirect to the create page again, but with a query parameter (e.g.,
?store_id=123
?store_id=123
) taken from the currently submitted form field (
store_id
store_id
).

My goal is to make it easier for users who are adding multiple products to the same store consecutively.

How can I modify the "Create Another" functionality in a custom
CreateRecord
CreateRecord
page (like
CreateProduct
CreateProduct
) to append this query parameter after saving?

Any best practices or recommended approach?

Use Case Example:


* User selects a store (
store_id = 5
store_id = 5
) while creating a product.
* After saving and clicking "Create Another", the user is redirected to
/admin/products/create?store_id=5
/admin/products/create?store_id=5
, so the
store_id
store_id
field is pre-filled for the next product.

Thanks in advance!
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Modify SelectFilter query based on another SelectFilters value (Dependent Filters)
FilamentFFilament / ❓┊help
3y ago
Exporter: Modify Query based on Options?
FilamentFFilament / ❓┊help
2y ago
Create Another in a Form Action
FilamentFFilament / ❓┊help
3y ago
Modify Create Another Functions in a Modal Relationsmanager
FilamentFFilament / ❓┊help
2y ago