Working out global tab order algorithmically?

Posted by Mrgreen on Stack Overflow See other posts from Stack Overflow or by Mrgreen
Published on 2010-04-08T23:52:50Z Indexed on 2010/04/09 0:13 UTC
Read the original article Hit count: 649

We have a proprietry system where we can configure fields on indiviual forms. However these fields have a global tab order (we cannot specify for a specific form).
We have a bunch of forms (35 in total) which share a lot of different fields.

Each form has a specific tab/edit order that needs to be configured.

Example:
Form 1 has fields A,B,C,D in that order.
Form 2 has fields E,F,G,A in that order.
Form 3 has fields E,B,H,I in that order.

The global tab orders would be E,F,G,A,B,C,D,H,I
Notice how A needs to come before B yet after G.

Is there any easy way to work this out using the tab order lists for each form?
I need to merge this tab order information into a single global tab order list.
I have over 200 fields in total and it is near impossible to do by hand.

© Stack Overflow or respective owner

Related posts about sorting

Related posts about order