title: Limiting the number of Gravity Forms submissions based on Datepicker
body: <p>Okay, so I have a snippet of code given to me from the Gravity Forms support people that is supposed to limit the amount of times a person can submit a form with a selected date. It essentially limits the duplicates in the datepicker field. Thing is, it isn't working. </p>
  
  <p>Here it is:</p>
  
  <pre><code>/ custom no duplicates validation for form 1 field 2
  add_action( 'gform_is_duplicate_1', 'limit_dates', 10, 4 );
  function limit_dates( $count, $form_id, $field, $value ) {
      if ( $field['id'] == 2 &amp;&amp; $count &lt; 6 ) {
          return 0;
      } else {
          return $count;
      }
  }
  </code></pre>
  
  <p>It is not working. I wanted only 6 submissions for each day selected on the datepicker.</p>