Improve docummentation for JS Form Processing Hooks
In the documentation, there's the following statement:
"In the example code replace replaceWithFormName with the name of your form."
Reading this, it was not clear to me what should I replace it with. After digging into the code and quite a few tests, I believe 'replaceWithFormName' must be replaced with the name of the form (as defined in the admin panel of mautic), in lowercase and without whitespacess.
For example, if the form name is "Newsletter Signup", you'd need to replace replaceWithFormName with "newslettersignup":
MauticFormCallback['newslettersignup'] = {...}
I would be great if you can please update the documentation to make it more clear.
Thanks in advance.
Affects the following URLs:
https://github.com/mautic/developer-documentation/blob/master/source/includes/_mauticjs_api_intro.md#js-form-processing-hooks
https://developer.mautic.org/#js-form-processing-hooks
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.