Support

Account

Home Forums Add-ons Repeater Field GF User Registration and ACF Repeater Reply To: GF User Registration and ACF Repeater

  • I also tried this as well

    add_action( 'gform_user_registered_6', 'car_regs', 10, 3 );
    function car_reg( $user_id, $feed, $entry ) {
       
        $user = new WP_User( $user_id );
    	$userid = 'user_'.$user;
    		
    		
    	$caryear = rgar( $entry, '21' );
    	$post = get_post( $entry['post_id'] );
        
    	#add the row to the repeater
    	$row = array(
    		'field_5aff6ca2a2def'	=> $caryear #this is your repeater subfield key
    	);
    	$i = add_row('field_5ac6602d483d7', $row, $userid); #this is the main repeater key
    }

    For more context of what I am trying to do is upon user registration(Form Submission), it adds an entry to their repeater form that is attached to their profile.

    I don’t know exactly what I am doing but as mentioned any help would be amazing!