© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
4 replies
Lars

Dynamically load Form input into schema.

I am trying to dynamically load the schema for a tab. I will explain the behaviour I except:

- On the edit/create page for a product I can select a category that that product is in.
- A category has characteristics with a type (Number or Text for now maybe more in the future).
- After selecting the category the characteristic fields should be displayed to characteristic tabs

Does anybody know if something like this is possible?
Thanks!

Notes;
product has a belongsToMany relation with characteristic.
The pivot table for product and characteristic has a third column for the value of that combination.
Solution
It sounds like characteristics are your fields, so load all the category characteristics fields in then set their visibility depending on the category?

Or render the fields based on the selected value with the category select being reactive and the tabs schema building inside a schema function returning an array
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

Hook into before form schema
FilamentFFilament / ❓┊help
3y ago
Change input label dynamically
FilamentFFilament / ❓┊help
3y ago
how dynamically add form text Input or spatieTag into resource based on non related model
FilamentFFilament / ❓┊help
3y ago
Load Schema / Reuse Schema
FilamentFFilament / ❓┊help
3y ago