hello list Is it possible to autoincrement tabindex attribute for all elements in generated form? Especially for Repeatable elements. My config file looks like(or check it in attachment):
---
auto_id: '%n'
auto_constraint_class: '%t'
indicator: submit
auto_fieldset:
legend: Fieldset Title
elements:
- type: Text
name: name
attributes:
tabindex: 1
- type: Select
name: category
attributes:
tabindex: 2
- type: Fieldset
legend: Second Fieldset
elements:
- type: Hidden
name: main_count
constraints:
- Required
- type: Repeatable
name: main_rp
nested_name: main_rp
counter_name: main_count
elements:
- type: Multi
elements:
- type: Text
name: main_quantity
- type: Text
name: main_measure
- type: Text
name: main_ingredient
# a lot of other elements
- type: Submit
name: submit
Repeating of Repeatable element (for example 10 times) without having
proper tabindex attribute will broke keyboard navigation through form
elements.
I've tryed to put
tabindex: '%r' and tabindex: '%n'
but this doesn't work - it's just generate invalid input code
<input name="main_rp_1.main_quantity" type="text"
id="main_rp_1.main_quantity" tabindex="%r" />
thanks in advance
Kamen
example.yml
Description: Binary data
_______________________________________________ HTML-FormFu mailing list [email protected] http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu
