1

I want to remove the Create button of an entry based on some condition (review states) for some users.

Is there a way to hook in within a module?

1

I would try to do this via JS, using https://plugins.craftcms.com/cp-js

If the information, whether you want to show the button or not, is not available in the entry's edit page itself, create a controller within a module and request the information from the controller via AJAX.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.