Support

Account

Home Forums ACF PRO Get all values from user profile acf_form Reply To: Get all values from user profile acf_form

  • almost! 🙂

    I got all the objects and been able to send them through email,
    the only problem left is I get the chosen radio button value, and I need the chosen radio button’s name.

    This is my relevant code now:

    	$body = '';
    
    	$fields = get_field_objects($post_id);
    
    	if( $fields )
    	{
    		foreach( $fields as $field_name => $field )
    		{
    			$body .= '<li>';
    //the field label:
    			$body .= '<h3>' . $field['label'] . '</h3>'; 
    //the chosen radio button value:
    			$body .= $field['value'];
    			$body .= '</li>';
    		}
    	}