Snippi
A super awesome snippet tool.
- 1.
// replace "123" with your form ID
- 2.
add_filter( 'gform_pre_submission_123', function( $form ) {
- 3.
// replace "1.1" to the input ID of your checkbox field
- 4.
// replace "2" to the field ID of the field you would like to copy the value from
- 5.
$_POST['input_1.1'] = rgpost( 'input_2' );
- 6.
} );