Support

Account

Home Forums General Issues Updating User Profile Radio Button Field

Unread

Updating User Profile Radio Button Field

  • Hey there, i’m having troubles trying to get a radio button field to update on gravity form submit.

    I have a radio button field that has three options:
    Field: field_6095441b0a024
    none : None
    studio : Studio
    guest : Guest

    It is assigned to each user.

    I have two gravity forms that I want to update this ACF field upon submit. Currently I have this code:

    //changes studio status after those forms submit
    add_action('gform_after_submisson_8', 'update_user_tour_status', 10, 2);
    function update_user_tour_status($entry, $form){
        $authorID = get_current_user_id();
        $fid = update_field('field_6095441b0a024', 'studio', 'user_'.$authorID);
    }
    
    add_action('gform_after_submisson_7', 'update_user_tour_statusguest', 10, 2);
    function update_user_tour_statusguest($entry, $form){
        $tourartist = 'Tour - Guest Artist';
        $authorID = get_current_user_id();
        $fid = update_field('field_6095441b0a024', 'guest', 'user_'.$authorID);
    }

    But upon testing this out, there’s no update :(. Could anyone help guide me? Thanks!

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.