Forums

Tabindex on multi field Forms

webuniverse 17 Apr, 2013
Hello

How is it possible on a multi-field form to add a tabindex?

Thanks for help
Corinne
GreyHead 18 Apr, 2013
Hi webuniverse,

There's no built-in way to add a tabindex. The simplest is probably to add them with JavaScript when the page loads, not ideal I'm afraid.

Bob
netwa 24 May, 2013
Can we expect, that the tabindex is added in the future in wizard mode. It is a very effective way and should be simple to add.
GreyHead 24 May, 2013
Hi netwa,

I have no idea what max intends to add :-( I've only seen this request about twice in the last five years so it may not be high on his list.

As a workaround it's probably possible to add using some fairly simple JavaScript - not ideal I know.

Bob
netwa 24 May, 2013
Here is my solution for 2 column and some fields after:

<script type="text/javascript">
	index  = 1;
	$(".left input").each(function() {
	 
   	 $(this).attr('tabindex', index);
   	 index = index +2;
   	 });
   	 
	index = 2;
	$(".right input").each(function() {
	 
   	 $(this).attr('tabindex', index);
   	 index = index +2;
   	 });

	$(".wide textarea").each(function() {
	 
   	 $(this).attr('tabindex', index);
   	 index = index + 1;
   	 });

 	$(".wide input").each(function() {
	 
   	 $(this).attr('tabindex', index);
   	 index = index + 1;
   	 });
	 
  	 
</script>


Maybe someone has the same problem. Cheers🙂
This topic is locked and no more replies can be posted.