• Resolved eliac7

    (@eliac7)


    Hello Ultimate Members,
    I have created a custom tab and have shown 3 fields. The field of age is a dropdown. However, when someone clicks the dropdown, it appears all the selections, but when he chooses one selection from the dropdown and updates the profile, the field doesn’t get updated (it returns 0). Any ideas?

    function showUMExtraFields() {
    	$id = um_user('ID');
    	$output = '';
    	$names = array('age','phone_number','text_area');
    
    	$fields = array(); 
    	foreach( $names as $name )
    		$fields[ $name ] = UM()->builtin()->get_specific_field( $name );
    	$fields = apply_filters('um_account_secure_fields', $fields, $id);
    	foreach( $fields as $key => $data )
    		$output .= UM()->fields()->edit_field( $key, $data );
    
    	echo $output;
    	}
    
    	add_action('um_account_pre_update_profile', 'getUMFormData', 100);
    
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Dropdown menu doesn’t get updated’ is closed to new replies.