Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Populate User Level Risk Data (form ID 4)
- // add_action( 'gform_pre_submission_4', 'hrx_bigshot_pre_submission2' );
- function hrx_bigshot_pre_submission2( $form ) {
- $UserLevel = rgpost( 'input_1' );
- if($UserLevel == 'LowRisk'){
- $_POST['input_5'] = rgpost( 'input_2' );
- } elseif ($UserLevel == 'MidRisk') {
- $_POST['input_5'] = rgpost( 'input_3' );
- } elseif ($UserLevel == 'HighRisk') {
- $_POST['input_5'] = rgpost( 'input_4' );
- }
- }
- // add_action( 'gform_pre_submission_3', 'hrx_bigshot_pre_submission' );
- function hrx_bigshot_pre_submission( $form ) {
- $_POST['input_39'] = print_r($form, true);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement