Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-01-30T19:29:34.443Z
Answers.LastActivityDate: 2021-01-30T19:29:34.443Z
Answers.UserDisplayName: Matthias Redl-Mann
Body: <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>
  
Tags: <plugin-development><control-panel><modules><hook><button>
Title: Removing the Save button based on some condition
ThreadText: # 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.
  
  
  ---
  
  