You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I have a scenario where i'm adding the conditional field in the layout from a package called flexible content but for some reason, it's not working.
here is my code
Flexible::make('custom', 'custom')
->addLayout('', 'wysiwyg', [
Select::make(__('Type'), 'type')
->options([
'opt1' => 'opt1',
'opt2' => 'opt2'
]),
KeyValue::make(__('Options'), 'option')
->if(['type'], fn($value) => $value['type'] === 'opt1'),
]),
])
The keyValue field always show up and when the select dropdown changes nothing happens to the keyValue field.
Any assistance is highly appreciated
The text was updated successfully, but these errors were encountered:
Hello,
I have a scenario where i'm adding the conditional field in the layout from a package called flexible content but for some reason, it's not working.
here is my code
Flexible::make('custom', 'custom')
->addLayout('', 'wysiwyg', [
Select::make(__('Type'), 'type')
->options([
'opt1' => 'opt1',
'opt2' => 'opt2'
]),
The text was updated successfully, but these errors were encountered: