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.17.1 #39

Open
holubar opened this issue Oct 27, 2022 · 1 comment
Open

DependsOn does not work in Nova 4.17.1 #39

holubar opened this issue Oct 27, 2022 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@holubar
Copy link

holubar commented Oct 27, 2022

Nova 4.17.1

My code:
SimpleRepeatable::make(__('app.links_column'), 'json_content', [ Text::make(__('app.item_name'), 'name'), Text::make(__('app.link'), 'link'), Boolean::make(__('app.is_column_heading'), 'is_heading'), ]) ->dependsOn('type', function (SimpleRepeatable $field, NovaRequest $request, FormData $formData) { if (! \App\Models\Card::display_links_array_fields($formData->type)) { $field->hide(); } }),

Error mesage: Method Laravel\Nova\Http\Controllers\CreationFieldController::sync does not exist.

When I removed DependOn, field is working

@holubar
Copy link
Author

holubar commented Oct 27, 2022

Actually I am getting the same error, when I try to replicate resource. On standard edit, it's OK

@Tarpsvo Tarpsvo added the help wanted Extra attention is needed label Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants