Home › Forums › Quform WordPress › Keyboard tab not in correct order
I have an issue with a form where the tabbing is in an incorrect order, and infact the tab moves away from the form before its been through all the inputs.
Is there a way to set tabindex on the form?
Thanks,
You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
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