Home › Forums › Quform WordPress › Keyboard tab not in correct order › Reply To: Keyboard tab not in correct order
August 12, 2019 at 12:14 pm #29786
tomv
Participant
Thanks for your response.
I have tried the following,
<?php
/*
* Plugin Name: Quform Tabbing Order
* Description: Quform Tabbing Order made for Tollers
* Version: 1.0
*/
add_filter(‘after_setup_theme’,’quform_field_attributes’, function (array $attributes, Quform_Element_Field $element) {
$t = 0;
switch ($element->getIdentifier()) {
case ‘3_6’: $t = 30; break;
case ‘3_8’: $t = 31; break;
case ‘3_9’: $t = 32; break;
}
if ($t) {
$attributes[‘tabindex’] = $t;
}
return $attributes;
}, 10, 2);
?>
However the tab index’s remain the same. Is there anything I’m obviously doing wrong?
Cheers,
Tom