title: Custom Contact Form in Partials and use in Static Pages plugin
body: <p>I have used <a href="http://octobercms.com/" rel="nofollow noreferrer">OctoberCMS</a>, <a href="http://octobercms.com/plugin/rainlab-pages" rel="nofollow noreferrer">Static Pages</a> plugin, through which I am creating Static Pages.</p>
  
  <p>The thing is, I have created one contact form in Partial like below. </p>
  
  <p><em>contactform_snippet.htm - <strong>Markup</em></strong></p>
  
  <p><a href="https://i.stack.imgur.com/Nh9xd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Nh9xd.png" alt="enter image description here"></a></p>
  
  <p><em>contactform_snippet.htm - <strong>Code</em></strong></p>
  
  <p><a href="https://i.stack.imgur.com/IMzCI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IMzCI.png" alt="enter image description here"></a></p>
  
  <p>And below is the <strong>Static Page</strong> which I have created and used <em>contactform_snippet.htm</em> which I just created. </p>
  
  <p><a href="https://i.stack.imgur.com/AIhT7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AIhT7.png" alt="enter image description here"></a></p>
  
  <p>And below is <em>Preview</em> how its looking like.</p>
  
  <p><a href="https://i.stack.imgur.com/qDjDy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qDjDy.png" alt="enter image description here"></a></p>
  
  <p>The thing is, Even if I click on "Submit" button, it is not doing anything.</p>
  
  <p>I also changed the form code from <code>data-request="{{ __SELF__ }}::onSendInquiry"</code> to <code>data-request="onSendInquiry"</code>but then I am getting below error saying: </p>
  
  <blockquote>
    <p>AJAX handler 'onSendInquiry' was not found.</p>
  </blockquote>
  
  <p>The thing here is, similar thing I have created and copied in <strong>CMS Page</strong> instead of <strong>Static Page</strong> and all is working there with validations and email being sent.</p>
  
  <p>So My question is how can make the same thing work in <strong>Static Pages</strong> here using <strong>Snippets</strong>. I know the can be achieved via creating <strong>Components</strong> 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 ? </p>
  
  <p>Thanks  </p>