Back to Form Builder Support

beth.nicholas65790
beth.nicholas65790

{% component 'renderForm' formCode=page.form_to_show %}

page.form_to_show is "contact-form" which is set on the current page. I can see the form code is correct when I dump the controller out.

Why am I still seeing the default form?

beth.nicholas65790
beth.nicholas65790
$page = Page::where('slug', $this->param('slug'))->first();
$this->components['renderForm']->setProperty('formCode', 'contact-form');

This also results in the renderForm properties formCode being set to 'contact-form' when ran in onStart but still I only see the default form.

1-2 of 2