6

I need to Show/Hide form fields based on a parent Select field.

For example, I need to show Pen name text field when pen is selected and show Pencil name text field when pencil is selected.

Any ideas?

enter image description here

Vineeth Vijayan
  • 1,215
  • 1
  • 21
  • 33

1 Answers1

6

Got a Nova package for this feature:

https://novapackages.com/packages/epartment/nova-dependency-container

Vineeth Vijayan
  • 1,215
  • 1
  • 21
  • 33
  • 1
    This package didn't work for me, and others have reported issues with it, too: https://github.com/laravel/nova-issues/issues/355 – lwitzel Mar 27 '19 at 17:32
  • I don't think this is maintained and current package is very limited. – dmgd Aug 12 '19 at 21:36
  • 1
    The dependency container package does work with the latest nova (currently 2.4) and Laravel (currently 6.1) and is maintained by me since a few weeks now. You should have no problems implementing this with its current version. – dbf Oct 05 '19 at 08:33
  • 2
    Hi, I moved this package to nova 4: https://github.com/alexwenzel/nova-dependency-container – alexwenzel Jun 14 '22 at 18:30