Log in
💬Help
AAABIT
Assorted digital displays showing
numbers in different colours,
format and pixellation
sciencestockphotos.com
2011-03-07 13:35
CC-BY-3.0

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.


  1. Not disabled element:
    Disabled element: (this should not be successful in form submission)

Test results

  1. 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!

  2. 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!


↑ Menu
Previous edition ↓