This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

API — JavaScript

To allow JavaScript more advanced behaviours than those available by default with FormZ, you can use this API.

To fetch a form, you have to use a code similar to this one:

Fz.Form.get('myFormName', function(form) {
    // Whatever...

The name of the form must match the name you gave to the ViewHelper in your template (see “Form”). You then have access to the variable form, which allows you to manipulate whatever you need.

You can then manipulate: