Dealership Setup

Username;

$args = array(
‘form_id’ => $form_id,
);

// This will return an array of sub objects.
$subs = Ninja_Forms()->subs()->get( $args );

foreach ( $subs as $sub ) {
// This method takes one arg, the field id.

//if ($value = $sub->get_field( 71 ) == wp_eMember_get_user_details(“user_name”) ) {

//echo $value = $sub->get_field( 62 );
//}
//
}

wp_reset_postdata();

return $data;

}
add_filter(‘ninja_forms_field’,’dealership_prepopulate_forms’);
?>