Feature Request: Enable dependsOn
for Panel Field to Support Dynamic Fields
#6773
Unanswered
nastoychev
asked this question in
Ideas & Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Currently, Laravel Nova supports
dependsOn
for individual fields, allowing developers to conditionally show/hide fields based on user input. However, there is no built-in way to apply this behavior to Panels, which would be highly beneficial for dynamically generating form sections.I propose extending the Panel class to support
dependsOn
, enabling the creation of dynamic field groups based on form values.Use Case
Consider a scenario where the available form fields depend on a selected customer. Ideally, we should be able to dynamically modify the fields inside a Panel when the customer field changes.
Desired Usage
With dependsOn support, we should be able to use a Panel like this:
Beta Was this translation helpful? Give feedback.
All reactions