Hi, I just used eForm with the eformOnBeforeFormParse parameter. I had some serious problems with getting it to work. At the end it just turned out to be that the docs are different from the implementation :’(
&eformOnBeforeFormParse (optional)
Expects a function name. The function is called after the templates are loaded and the formid is found valid. The function should accomodate the following parameter: &$templates - (as reference) an associative array of loaded templates with indexes ’tpl’, ’report’,’thankyou’ & ’autotext’. Be aware that the latter three will only have a value if the form has been posted!
So there seems to be only one parameter called "templates". Well in the snippet code it is called with 2 parameters, being "fields" and "templates". So when I added an extra parameter everything worked.
Is there a way to get the documentation updated so other people won’t face the same problem?