title: cannot print values - using PHP
body: <p>I am trying to print date values before form submission but it did not print anything and submitted the form, below is my code</p>
  <pre><code>function webforms_save_submission_alter(&amp;$fields, $context) 
  {
      foreach ($fields as $key =&gt; $value) {
          if (in_array($key, [&quot;Date_Prototype__c&quot;, &quot;Date_Production__c&quot;, &quot;NBIOT_Date_of_Field_Trial__c&quot;, &quot;NBIOT_Date_Lab_Trial__c&quot;])){
              $fields[$key] = trim($value);
              print_r($fields); // printing here
              if ($fields[$key] == 'Date_Production__c') {
                  $fields[$key] = format_date(strtotime($fields['Date_Production__c']), 'medium', 'm-d-Y');
                  print_r($fields); // printing here
                  die;
              }
  </code></pre>
  <p>I want to see the date reactions before submitting the form but why it did not print anythign? can someone please help me on this?
  Your help will be highly appreciated..</p>