Thanks for the fast response! I put the component on a cms partial, I then use the partial on a static page using the Rain.Lab pages plugin. The form displays fine, just get the error when I hit submit.
Hello, if I understood the previous comments I have implemented what you suggested but I am still getting the onSubmit error.
I have a partial contact-popup.htm, included in the footer partial. The form is appearing when I click a button, all fields are appearing just having an issue with the submission. The code I am using is below. any help appreciated
You can work around this by adding the component to every layout that you want to use it on, and then only rendering it in the partial instead. Since the component will then be present on the layout, you're able to use its AJAX handlers.
I'm trying to give backend users the opportunity to put forms on a page with a viewbag partial.
They have to put in the formcode and then the form (via a partial) shows on the page (in the layout).
The component [renderForm] is in the layout.
Is it possible to only change the formCode property in the partial?
I have the following inside a partial. The form_to_show is set on the page variable and passed into a partial. I have tried moving the renderForm config to default.htm but the formCode is set to "". Any help appreciated.
We are proud to announce that the stable release of the October CMS 2 is now available! The release represents over a year of design, research and development effort, which resulted in multiple new features and changes.