I have used OctoberCMS, Static Pages plugin, through which I am creating Static Pages.
The thing is, I have created one contact form in Partial like below.
contactform_snippet.htm - Markup
contactform_snippet.htm - Code
And below is the Static Page which I have created and used contactform_snippet.htm which I just created.
And below is Preview how its looking like.
The thing is, Even if I click on "Submit" button, it is not doing anything.
I also changed the form code from data-request="{{ __SELF__ }}::onSendInquiry"
to data-request="onSendInquiry"
but then I am getting below error saying:
AJAX handler 'onSendInquiry' was not found.
The thing here is, similar thing I have created and copied in CMS Page instead of Static Page and all is working there with validations and email being sent.
So My question is how can make the same thing work in Static Pages here using Snippets. I know the can be achieved via creating Components but I have so many of forms and I want to implement something like this to make it work. Any thoughts what should I need to make this work here ?
Thanks