nova-inline-select
nova-inline-select copied to clipboard
Value don't saved if field used exceptOnForms() or hideWhenUpdating()
InlineSelect::make(__('Status'), 'status')
->options([...])
->exceptOnForms()
->inlineOnIndex()->inlineOnDetail(),
Workaround:
->canSee(function (NovaRequest $request) {
return false === $request->isUpdateOrUpdateAttachedRequest() && false === $request->isCreateOrAttachRequest();
})
Thanks @4n70w4. I am curious, however, the use case for adding exceptOnForms()
. The behavior of this field is just display on the index and/or detail views.
Editing a record and changing status are two different events. Allows to make do both at the same time from a single screen - is unacceptable.