TextInput with visibleOn() and visible()
I want to show published date on edit page only and only if the published date is not null, I am doing like following but I am getting error on create page.
3 Replies
You cannot used both, together,
->visibleOn()
uses ->visible()
under the hoodyou should check $context === ‘edit’ inside the callback
or just make $record nullable
Thanks!