© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
4 replies
meebo

Update relationship on a conditional field

Hello there, I have an employment model/resource that belongsTo a user, employment hasOne Accountant, the accountant is conditional if the employment is SelfEmployed. If the condition is met, I can see the accountant form which has its own model. My question is how do I create/hydrate the accountant form data. Is the best approach to create a relationship using the relationship manager or is there a way to inject the accountant data, as currently the accountant data is trying to be saved to the employments model not the accountants model. Thanks in advance, apologies if this is answered somewhere else.
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

Conditional validation on field in a repeater
FilamentFFilament / ❓┊help
2y ago
Missing field on relationship
FilamentFFilament / ❓┊help
2y ago
Update hidden fields (Relationship)
FilamentFFilament / ❓┊help
2y ago
Conditional Select Field
FilamentFFilament / ❓┊help
3y ago