Answers.Body: <p>The form validation hook:
  <a href="http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_validateForm" rel="nofollow">http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_validateForm</a></p>
  
  <p>When you say "until it has passed through...", in the hook you could look up the prior activity revisions.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-12-09T13:44:08.550Z
Answers.LastActivityDate: 2015-12-09T13:44:08.550Z
Answers.UserDisplayName: Demerit
Answers.Body: <p>the easiest is probably a little jQuery wrangling, you can see an example in this extension which sets a default case status based on the case type: <a href="https://github.com/PUMNL/nl.pum.casestatus" rel="nofollow">https://github.com/PUMNL/nl.pum.casestatus</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-12-09T07:25:45.870Z
Answers.LastActivityDate: 2015-12-09T07:25:45.870Z
Answers.UserDisplayName: ErikH - CiviCooP
Body: <p>Does anyone know how to restrict available CiviCase Status types based on what the current status is?</p>
  
  <p>I.e. I want not to be able to go to "application rejected" until it has passed through "application awaiting review".</p>
  
  <p>If this isn't possible out of the box, does anybody know what would be involved in developing that functionality?</p>
  
  <p>Thank you,</p>
  
  <p>John</p>
  
Tags: <civicase>
Title: Restrict CiviCase Status changes
ThreadText: # Restrict CiviCase Status changes
  
  (Asked by: username_0 on 2015-12-08)
  
  Does anyone know how to restrict available CiviCase Status types based on what the current status is?
  
  I.e. I want not to be able to go to "application rejected" until it has passed through "application awaiting review".
  
  If this isn't possible out of the box, does anybody know what would be involved in developing that functionality?
  
  Thank you,
  
  John
  
  **Tags:** civicase
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2015-12-09. Score: 2 | Accepted answer
  
  The form validation hook:
  <http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_validateForm>
  
  When you say "until it has passed through...", in the hook you could look up the prior activity revisions.
  
  
  ---
  
  ### Answer by username_2 on 2015-12-09. Score: 1
  
  the easiest is probably a little jQuery wrangling, you can see an example in this extension which sets a default case status based on the case type: <https://github.com/PUMNL/nl.pum.casestatus>
  
  
  ---
  
  