−
Table of content

The html generator relies on jquery. Specifically some fields and its javascipt depend heavily on it.
It is the default jelix generator for jForms. html is the name to give to {form} and {formfull} template plugins, if needed.

addError, called when an error is found. it receives a jFormsControl argument, which contains infos about the erroneous control, and an error code. the latter equals 1 if user has not edited a required control, 2 if its content is invalid.

end, called when checking process ends.

You're obviously free to do whatever you need/want in those methods. As for example, you could add the error messages to an error lists ( <ul> located in your html page):

As for error messages, your javascript object displaying help messages is equivalent except that only one method is required: show. show will be called with an help message to be displayed as argument.

HTML generator forces jQuery inclusion on every HTML response including a jForm. Thus, if you already link to jQuery script elsewhere in your appplication, such as in your common response, you should take care to include the very same script. Otherwise, your user will download it twice.

This manual is distributed under the terms of licence Creative Commons by-nc-sa 3.0. Therefore you're allowed to copy, modify and distribute and transmit it publicly under the following conditions: Attribution, Noncommercial, Share Alike.