-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
But still some native field options don't work, for example:
SelectPlus::make('Product Varieties', 'productVarieties', ProductVariety::class)
->usingDetailLabel('name')
->resolveUsing(fn($models) => $models->sortBy('pivot.order')->values())
->reorderable('order')
->required()
->onlyOnForms()
->dependsOn('productType', function (SelectPlus $field, NovaRequest $request, FormData $formData) {
if (!$formData->productType) {
$field->show();
} else {
$field->hide();
}
})I would like to be able to add for example: ->required() or disable it depending on the other field.
On all others basic Nova Fields all this methods work as they should.
Originally posted by @Bibesko in #49 (comment)
Milkhan, inukurax, mabelledimaano-cp, eslamabdallah74 and lukres
Metadata
Metadata
Assignees
Labels
No labels