© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
15 replies
zemo

How to Get $get an input that is in the main form from the ->createOptionForm modal

Context: I have a form to create a payment where you select a subscription year. Then you have to select an existent subscription (based on the subscription year).
If there is no subscription, you can create one in the modal (I've used the ->createOptionForm method to achieve this).

For a subscription to be created, you have to select a subscription year. Because you've already selected it in the process of creating the payment, I would like to Get $get it automatically.
How do I achieve this? How do I access the subscription_year selected in the main form?

There are basically two inputs with the same name. subscription_year_id in the main form, and subscription_year_id in the ->createOptionForm modal.

Thanks!
Solution
I think this is also possible with $livewire->data[]
Jump to solution
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

Get state from form to createOptionForm
FilamentFFilament / ❓┊help
16mo ago
How do I pass form modal input back to the main form?
FilamentFFilament / ❓┊help
3y ago
Form select createOptionForm modal width
FilamentFFilament / ❓┊help
3y ago
how to set the data from input to a form modal
FilamentFFilament / ❓┊help
14mo ago