How do I pass form modal input back to the main form?

I am opening a form modal through an action, and having a new input field there. Upon saving the modal, i'd like that contents of the input field inside the modal to go back to the original input field the modal was opened from on the main form.

How would one achieve that in Filament?
Solution
To set a field, try adding Set $set to your argument, then $set("field name", $value)
Was this page helpful?