Example 11: Disabled Form Fields in Template
The following verifies that form fields within a repetition template are not successful. It also tests whether form fields disabled in the repetition template are also disabled in each instantiated repetition block, but note: for this to work in this implementation, authors must include a class name of "disabled" on all disabled elements in the repetition template element to ensure that they are also disabled in each repetition block. This is due to an issue in Firefox which is detailed in issue #9.
Test results
Form fields in repetition template should not be 'successful' (there should not be any querystring parameters with keys such as
submitted[i]
; these fields should not be submitted): Press 'submit form' to test... Passed Failed!Form fields in the repetition template which are originally flagged as
disabled
should be disabled in each instantiated repetition block: Press 'submit form' to test... Passed Failed!