Skip to content

DependSon does not work in Nova 4 #15

@holubar

Description

@holubar

I want to hide the field based on another field's value, not possible -> DependsOn does not exist

Heroicon::make(__('app.icon'), 'icon') ->disableEditor() ->dependsOn('type', function (Heroicon $field, NovaRequest $request, FormData $formData) { if (! \App\Models\Card::display_icon_fields($formData->type)) { $field->hide(); } })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions