Index: openacs-4/packages/acs-templating/www/doc/tagref/formgroup.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/doc/tagref/formgroup.html,v diff -u -r1.2 -r1.3 --- openacs-4/packages/acs-templating/www/doc/tagref/formgroup.html 24 Feb 2004 11:16:32 -0000 1.2 +++ openacs-4/packages/acs-templating/www/doc/tagref/formgroup.html 7 Aug 2017 23:48:03 -0000 1.3 @@ -12,7 +12,7 @@
The formgroup tag is used to lay out a set of check boxes +
The formgroup tag is used to lay out a set of check boxes or radio buttons in a dynamic form template. All the check boxes or radio buttons in a group share the same name. A button group must be created as an element in the Tcl script associated with the @@ -27,45 +27,47 @@ <tr><td>@formgroup.widget@</td><td>@formgroup.label@</td></tr> </formgroup> </table><br> - <input type=submit value="Submit"> + <input type="submit" value="Submit"> </formtemplate>
The formgroup tag contains a +
The formgroup tag contains a template for formatting each check box or radio button in the group. The tag makes a special multirow data source named - formgroup available in the body of the tag. The - formgroup data source includes two columns. The first - is widget, containing an HTML input tag for - one of the buttons in the group. The second is label, + formgroup available in the body of the tag. The + formgroup data source includes two columns. The first + is widget, containing an HTML input tag for + one of the buttons in the group. The second is label, containing a corresponding label for the button.
-The formgroup tag may emulate either the multiple or grid tags in repeating the +
The formgroup tag may emulate either the multiple or grid tags in repeating the template section within the tag. By default it emulates the multiple tag. If the - cols attribute is specified, the formgroup - tag will emulate the grid + href="multiple.html">multiple tag. If the + cols attribute is specified, the formgroup + tag will emulate the grid tag.
-HTML attributes, including JavaScript event handlers, may be - specified as attributes to the formgroup tag. The - system will include all such attributes in the input - tags of each radio button or check box in the group.
+HTML attributes may be specified as attributes to + the formgroup tag. The system will include all such + attributes in the input tags of each radio button or + check box in the group. Although possible, newer browser + security features such as CSP discourage the use of inline + Javascript event handlers.
-<formgroup id="services" onChange="validate();">+
<formgroup id="services" style="background-color:white;">-
See the formtemplate and -formwidget tags for more information +
See the formtemplate and +formwidget tags for more information on writing the body of a dynamic form template.