Closed CodeWithDennis closed 1 year ago
Tested with Nova 4.25.0 and 4.25.1 and Radio field 1.1.9.
https://nova-demo.huth.it/resources/nova-radio-field-radios/3/edit
You have a syntax error:
->dependsOn(['type'], function (Radio $field, NovaRequest $request, FormData $formData) {
if ($formData->type == 'test') { $field->options(/* Missing --> */ [ /* <-- Missing */'test'=> 'Test']);}
})
Yea sorry i edited the code only in this message (not actually code) that doesn't seem to be the problem. Actual problem is no longer present when using v4.24.4
Have you tried using a Radio DependsOn
on another Radio?
Have you tried using the Radio fields on another Radio field?
Sorry that it takes a while at the moment. I am actually on vacation. 🏝️
Live: https://nova-demo.huth.it/resources/nova-radio-field-radios/5/edit
Dependencies of the Demo App:
Once i am upgrading to the new Nova Version: Upgrading laravel/nova (4.24.4 => 4.25.1)
see following video:
https://github.com/Muetze42/nova-radio-field/assets/23448484/7157ce22-211c-4d3f-969e-28bda42db340
Don't have to look now tho, enjoy the holidays =)
Not sure if this is on my end but since the new Nova update im getting the following error:
Illegal offset type in isset or empty
->vendor/norman-huth/nova-radio-field/src/Radio.php
-> line:244
Error occurs when using: v4.25.0 (Silver Surfer)