Is it possible to hide some form elements when calling via view action?
I would like to somehow detect that form was loaded by using view action and modity the form layout slightly.
4 Replies
->hiddenOn('view')
Hm, I have tried it before writing but it did not work for some reason.
I have this view action
and this is how my form looks like
I am trying to hide Card component on view action.
just use
Tables\Actions\ViewAction::make(),
Oh right, this changes the name of the view action. So technically I could have
hiddenOn('products')
and it works. 🙂
Nice, thanks.