Answers.Body: <p>There is currently not a native way to do this in Craft. You should consider adding a thumbs-up/comment to <a href="https://github.com/craftcms/cms/issues/805" rel="nofollow noreferrer">this feature request</a> if you'd like to see it, though.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-06-23T03:56:02.580Z
Answers.LastActivityDate: 2017-06-23T03:56:02.580Z
Answers.UserDisplayName: Brad Bell
Body: <p>Is there a way to make fields conditionally required? </p>
  
  <p><a href="https://i.sstatic.net/bJEp7.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/bJEp7.png" alt="Example of fields"></a></p>
  
  <p>I have a toggle field that is used to hide or show a section (see screenshot: "Section 3 enabled"). If the section is shown (toggle: on), the fields need to be filled. If the section is hidden (toggle: off), the  fields can be left empty.
  Note that the section's fields can be of any type (text, matrix, entry, assets, ...).</p>
  
  <p>I already tried the plugin <a href="https://github.com/mmikkel/Reasons-Craft" rel="nofollow noreferrer">Reasons</a>, and unfortunately it's not what I need because it will still return a validation error for the hidden but required fields.</p>
  
  <p>My Craft CMS version is 2.6.2983.</p>
  
Tags: <conditional><custom-field><required>
Title: Make fields conditionally required
ThreadText: # Make fields conditionally required
  
  (Asked by: username_0 on 2017-06-22)
  
  Is there a way to make fields conditionally required?
  
  [![Example of fields](https://i.sstatic.net/bJEp7.png)](https://i.sstatic.net/bJEp7.png)
  
  I have a toggle field that is used to hide or show a section (see screenshot: "Section 3 enabled"). If the section is shown (toggle: on), the fields need to be filled. If the section is hidden (toggle: off), the fields can be left empty.
  Note that the section's fields can be of any type (text, matrix, entry, assets, ...).
  
  I already tried the plugin [Reasons](https://github.com/mmikkel/Reasons-Craft), and unfortunately it's not what I need because it will still return a validation error for the hidden but required fields.
  
  My Craft CMS version is 2.6.2983.
  
  **Tags:** conditional, custom-field, required
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-06-23. Score: 1
  
  There is currently not a native way to do this in Craft. You should consider adding a thumbs-up/comment to [this feature request](https://github.com/craftcms/cms/issues/805) if you'd like to see it, though.
  
  
  ---
  
  