srikat

Untitled

Aug 1st, 2016
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. add_filter( 'gform_pre_submission_filter', 'pre_submission_filter' );
  2. function pre_submission_filter( $form ) {
  3.  
  4. // foreach( $form['fields'] as $field ) {
  5. // //NOTE: replace 3 with your checkbox field id
  6. // $field_id = 5;
  7. // if ( $field->id != $field_id ) {
  8. // continue;
  9. // }
  10.  
  11. // print_r($field->defaultValue);
  12.  
  13. // }
  14.  
  15. print_r( $form['fields'][6]->defaultValue );
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment