• 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.
    } );
// replace "123" with your form ID add_filter( 'gform_pre_submission_123', function( $form ) { // replace "1.1" to the input ID of your checkbox field // replace "2" to the field ID of the field you would like to copy the value from $_POST['input_1.1'] = rgpost( 'input_2' ); } );

Copy Code to Clipboard Raw

Sign-in or Create a Free Account.

Snippi uses Twitter or Facebook to register and create accounts. Registration will enable you to keep track of your snippets. We never spam your timeline or wall. Ever.

Sign-in with Facebook Sign-in with Twitter