<p>I would try to do this via JS, using <a href="https://plugins.craftcms.com/cp-js" rel="nofollow noreferrer">https://plugins.craftcms.com/cp-js</a></p>
<p>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.</p>

CC BY-SA 4.0
2021-01-30T19:29:34.443Z
2021-01-30T19:29:34.443Z
Matthias Redl-Mann
<p>I want to remove the Create button of an entry based on some condition (review states) for some users.</p>
<p>Is there a way to hook in within a module?</p>

<plugin-development><control-panel><modules><hook><button>
Removing the Save button based on some condition
# Removing the Save button based on some condition

(Asked by: username_0 on 2021-01-29)

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?

**Tags:** plugin-development, control-panel, modules, hook, button


---

## 1 answers

### Answer by username_1 on 2021-01-30. Score: 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.


---

