dillingham / nova-conditional-fields

WIP: Conditionally display fields based on another field's value
MIT License
39 stars 3 forks source link

Method fieldsWhen doesn't work at all #12

Open jehkinen opened 4 years ago

jehkinen commented 4 years ago

I made some resource on nova with conditional field

....
    public function fields(Request $request)
    {
        return [

           Condition::make('Show Fields')
                ->fieldsWhen(true, [

                    Text::make('Title', 'title')
                        ->sortable()
                        ->rules('required', 'max:255'),

                ]),

]
...

but field Title is not visible, I use Laravel Nova v.2.12