Back to Email Subscription Form Support

mja
mja

My code:

[formSubscribe]
urlToUnsubscribe = "unsubscribe"
urlToProfile = "subscriber-profile"
geo = "disabled"
thanksMessage = "Thanks for subscribing!"
errorMessage = "Email already exists!"
==
{% component 'formSubscribe' %}

Error when submitting:

AJAX handler 'formSubscribe::onAddSubscriber' was not found.
andradedev
andradedev

Hi @mja, first thanks for use mi plug-in. This error is caused for use the component in a partial, please use in a page directly. https://github.com/andradedev/Subscribe-Form/issues/1 See the issue for major explanation!

mja
mja

Is there any way to add this form to a partial? I specifically need to have it in a partial and not a page directly.

This should be categorised as a bug.

mja
mja

Hey,

So I figured out a work-around. Basically you have to include the form component in both, the page and partial. For example:

Page/layout:

[formSubscribe]
==
{% page %}

Partial:

[formSubscribe]
==
{% component 'formSubscribe' %}
andradedev
andradedev

mja said:

Hey,

So I figured out a work-around. Basically you have to include the form component in both, the page and partial. For example:

Page/layout:

[formSubscribe]
==
{% page %}

Partial:

[formSubscribe]
==
{% component 'formSubscribe' %}

Oh, thats very cool, thanks for fix that bug, i place in the documentation if not problem for you.

Reggards and thanks so mucho

1-5 of 5