• I am trying to add a gravity form (multiple file uploads) to a custom tab on the account page. I cannot click to upload files and I keep seeing this error in the console:

    [DOM] Found 3 elements with non-unique id #um_account_submit:<input type=”submit” name=”um_account_submit” id=”um_account_submit” class=”um-button” value=”Update Account”> <input type=”submit” name=”um_account_submit” id=”um_account_submit” class=”um-button” value=”Update Password”> <input type=”submit” name=”um_account_submit” id=”um_account_submit” class=”um-button” value=”Delete Account”>

    This is my functions code

    /* add new tab called “uploads” */

    add_filter(‘um_account_page_default_tabs_hook’, ‘my_custom_tab_in_um’, 100 );
    function my_custom_tab_in_um( $tabs ) {
    $tabs[800][‘uploads’][‘icon’] = ‘um-icon-android-upload’;
    $tabs[800][‘uploads’][‘title’] = ‘Upload Documents’;
    $tabs[800][‘uploads’][‘custom’] = true;
    $tabs[800][‘uploads’][‘show_button’] = false;
    return $tabs;
    }

    /* make our new tab hookable */

    add_action(‘um_account_tab__uploads’, ‘um_account_tab__uploads’);
    function um_account_tab__uploads( $info ) {
    global $ultimatemember;
    extract( $info );

    $output = $ultimatemember->account->get_tab_output(‘uploads’);
    if ( $output ) { echo $output; }
    }

    /* Finally we add some content in the tab */

    add_filter(‘um_account_content_hook_uploads’, ‘um_account_content_hook_uploads’);
    function um_account_content_hook_uploads( $output ){
    ob_start();
    ?>

    <div>

    <?php echo do_shortcode(‘[gravityform id=4 title=false description=false ajax=false]’); ?>

    </div>

    <?php

    $output .= ob_get_contents();
    ob_end_clean();
    return $output;
    }

  • The topic ‘Account page error’ is closed to new replies.