Hi, first off, thanks for this nice little module.
There seems to be an issue where the checkbox field works correctly in table views of a resource:

...but breaks the dedicated form for that resource: (form cannot be submitted due to a JS error)

We have found the following workaround for the issue:
// Answer.php
class Answer extends Resource
{
// ...
public function fields(Request $request)
{
return [
// ...
(strpos($request->fullUrl(), '/answers/') !== false
// Use plain checkbox in the dedicated form
? Boolean::make('Correct answer?', 'correct_answer')->hideFromDetail(true)
// Use inline checkbox in table view
: LiveupdateBoolean::make('Correct answer?', 'correct_answer')->hideFromDetail(true)),
];
}
Is there a better way to do this?
Hi, first off, thanks for this nice little module.
There seems to be an issue where the checkbox field works correctly in table views of a resource:
...but breaks the dedicated form for that resource: (form cannot be submitted due to a JS error)
We have found the following workaround for the issue:
Is there a better way to do this?