cryostar Posted September 27, 2021 Share Posted September 27, 2021 So I have this weird request from the client that she wants to hide some statuses in the settings - hidden, locked, unique because it will be confusing to her editors and some of these settings are too powerful for them too. Is there a way to hide these? Link to comment Share on other sites More sharing options...
d'Hinnisdaël Posted September 27, 2021 Share Posted September 27, 2021 Untested code, but along those lines: wire()->addHookAfter('ProcessPageEdit::buildForm', null, function (HookEvent $event) { $form = $event->return; $statusField = $form->find("name=status")->first(); if ($statusField) { $statusField->collapsed = Inputfield::collapsedHidden; } }); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now