Back to Form Builder Support


I have inherited an October site that I am trying to add forms to. The application has "pages" as a section built with the Builder plugin and there is a CMS Page built in the CMS section of the site so I don't have the ability to just drag a form onto a page as suggested in the docs.

I have added 2 fields to the pages plugin, show_form and form_to_show which set a boolean and a string of form names respectively.

Now I have had this working nicely until I try and submit the form which was inside a partial. I get the ajax error so have tried to move the renderForm to the page.

On the cms-page.htm I have [renderForm] formCode = {{page.form_to_show}} and in the template lower down I have

{% if page.show_form == true %}
    <div class="new-form-styles">
        <div class="container">
            <h1>Set: {{page.form_to_show}}</h1>
            <h1>Code {{page.formCode}}</h1>
            <h1>I am set in the default and will submit but am no dynamic</h1>
            <div class="row">
                <div class="col">
                    {% component 'renderForm' %}
{% endif %}

This gives me the following error Form with code "" does not exist! Did you select correct form in component settings?. Now I've seen there is the ability to add the "form" in the CMS part of the website. What do I need to do to get the value of page.form_to_show to appear in here.


1-1 of 1