Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Improve docummentation for JS Form Processing Hooks #110

Open
luisjunco opened this issue Oct 22, 2018 · 0 comments
Open

Improve docummentation for JS Form Processing Hooks #110

luisjunco opened this issue Oct 22, 2018 · 0 comments

Comments

@luisjunco
Copy link

luisjunco commented Oct 22, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant