Support

Account

Home Forums ACF PRO Using ACF Forms and default user fields?

Helping

Using ACF Forms and default user fields?

  • Hey guys,

    I’ve recently created my first ACF form using code such as:

    
    // ACF Form settings
    $settings = array(
        'id' => 'contractor-form',
        'post_id' => 'user_' . get_current_user_id(),
        'field_groups' => array(418),
        'post_content' => false,
        'uploader' => 'basic',
        'return' => '',
        'submit_value' => __('Finish Registration', 'acf'),
        'updated_message' => false,
        'label_placement' => 'left',
        'html_submit_button'	=> '<input type="submit" value="%s" />',
    );
    
    // Register our ACF form for usage in our template
    acf_register_form( $settings );
    

    …and then outputting the form later with acf_form and everything is working fine; however was wondering if you can also use the form to update default user fields as well as ACF fields?

    Reason I ask is because I want to collect the first name and last name, but don’t want to double up on the fields, but more importantly want to be able to update the users email address from the frontend as well.

    Is something like this possible?

  • I really need an answer here. Please help.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Using ACF Forms and default user fields?’ is closed to new replies.