Country selectorThis example illustrates how you can programmatically update the
content of a selection list using a collection built in the flow.
This sample illustrates event-handling in Cocoon Forms and how selection lists can
be changed
programmatically.
Event-handlers are defined in the form definition to update the selection lists and
set
the comment text below the table. This requires only a few lines of server-side JavaScript.
Selection widgets also have a "submit-on-change" attribute set in the form template
so that
changes are considered immediately by the server.
See "countryselector_form.xml" and "countryselector_template.xml" to see how this
is done.
Back to Forms samples