HTML_QuickForm_advmultiselect : The Definitive Guide |
When selection lists have lot of item, we don't expect to count each item one by one.
When it's so easy to count selections on server side, once the form is submitted, there is no ability to do the same in live, until new feature "Live counter".
Important | |
---|---|
This feature require HTML_QuickForm_advmultiselect package version 1.3.0 or better. |
A full example is given in appendices. See live counter combines with multiple elements.
Implements display of live counters (selected, unselected items) is fully independant. Its requires for each counter to add new placeholders.
For item unselected list, these placehodlers are :
For item selected list, these placehodlers are :
Note | |
---|---|
Counters identifiers (attribut ID) used by DOM API are identified by string : advmultiselect element name concat with "_selected" or "_unselected" suffix (depending of lists).
Result for example (previous code) : advmultiselect element with single list (with checkboxes) are identified by string : "qfams_" prefix concat with advmultiselect element name
Result for example (previous code) : advmultiselect element with double list are identified with string : prefix "__" (two underscores) concat with advmultiselect element name for unselected list. While selection list (selected item) is identified with string : prefix "_" (one underscore) concat with advmultiselect element name.
Result for example (previous code) : |
Important | |
---|---|
advmultiselect elements with single list (with checkboxes)
are identified by DOM API with only
See example in appendix Live counter
combines with multiple elements, and template definition
|
HTML_QuickForm_advmultiselect : The Definitive Guide | v 1.4.0 : 9 Juin 2007 |