epartment / nova-dependency-container

A Laravel Nova field container allowing to depend on other fields values
MIT License
382 stars 163 forks source link

Can't work out how to depend on a File field #187

Open warksit opened 3 years ago

warksit commented 3 years ago

I would like to show some fields once a file has been selected to be uploaded (or previously uploaded).

File::make('Payroll Payment Summary', 'payroll_payment_summary'),
NovaDependencyContainer::make([
    Heading::make('NotEmpty') // Just an example field
])->dependsOnNotEmpty('payroll_payment_summary'),

Have also tried ->dependsOnNullOrZero('payroll_payment_summary').

Is what I am trying achievable?

vinoles commented 1 year ago

Hello, I have the same problem, could you solve it? Thank you