Index: openacs-4/packages/acs-templating/www/doc/tagref/formwidget.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/doc/tagref/formwidget.adp,v diff -u -N -r1.3.2.7 -r1.3.2.8 --- openacs-4/packages/acs-templating/www/doc/tagref/formwidget.adp 7 Nov 2016 19:23:16 -0000 1.3.2.7 +++ openacs-4/packages/acs-templating/www/doc/tagref/formwidget.adp 1 Dec 2016 16:46:13 -0000 1.3.2.8 @@ -33,16 +33,21 @@ complete with their proper values, options and other attributes, while rendering the template. Explicit form tags in the template may be used in special circumstances, but should be avoided -wherever possible.

  • -

    HTML attributes, including JavaScript event handlers, may be -specified as attributes to the formwidget tag. The -system will include all such attributes in the input or -select tag of the rendered HTML form.

    -<formwidget id="cc_number" onChange="validate();">
    -
    -
  • See the formtemplate +wherever possible.

  • +
  • +

    + HTML attributes may be specified as attributes to + the formwidget tag. The system will include all such + attributes in the input or + select tag of the rendered HTML form. + Although possible, newer browser security features such as CSP + discourage the use of inline Javascript event handlers. +

    +
    <formwidget id="cc_number" style="color:red;">
    +
  • +
  • See the formtemplate and formgroup tags for more information on writing the body of a dynamic form template.


  • -templating\@arsdigita.com +