Skip to:
Content
Pages
Categories
Search
Top
Bottom

Adding TabIndex to input fields, misses TEXTAREA or CHECKBOX ?


  • metadataconsulting
    Participant

    @metadataconsulting

    Hi good folks at BB,

    Q1) How do i go about adding TabIndex to input fields for TEXTAREA or CHECKBOX ? This works for TEXT input types but not TEXTAREA or CHECKBOX.

    $tabno = 0; //number of fields from above
    while ( bp_profile_fields() ) : bp_the_profile_field();
    $tabno++;
    ?>
    <div<?php bp_field_css_class( ‘editfield’ ); ?>>
    <?php
    $field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() );
    //$field_type->edit_field_html();

    //this does not work for TEXTAREA or CHECKBOX
    $field_type->edit_field_html(array(“tabindex”=>”$tabno”));

    //Q2 Why do I need this line? How can I hide these ids?
    <input type=”hidden” name=”signup_profile_field_ids” id=”signup_profile_field_ids” value=”<?php bp_the_profile_field_ids(); ?>” />

  • You must be logged in to reply to this topic.
Skip to toolbar