Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DependSon does not work in Nova 4 #15

Open
holubar opened this issue Oct 21, 2022 · 3 comments
Open

DependSon does not work in Nova 4 #15

holubar opened this issue Oct 21, 2022 · 3 comments

Comments

@holubar
Copy link

holubar commented Oct 21, 2022

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(); } })

@AlexAzartsev
Copy link
Owner

Thx for feedback, will take a look.

@DenisRozganyaev
Copy link

@AlexAzartsev Hello, nice package.
Any updates regarding dependsOn method?

@AlexAzartsev
Copy link
Owner

AlexAzartsev commented Sep 19, 2023

thx, i'm planning to go through issues in October, will take a look at this as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants