Contact form not working through stack

Permalink
Hi
i have add a form block on a stack called "Footer Form", and include it in footer by using this code

<?php
     $stack=Stack::getByName('Footer Form');
     $stack->display();
        ?>

But the form is not submitting correctly. Any idea ?
thanks

midhunsaffron
 
Gondwana replied on at Permalink Reply
Gondwana
I don't know.

But in some previous dredgings, I found that forms (at least legacy ones) rely on a block's ID (bID) when submitting. In stacks, blocks don't necessarily get unique IDs (I think); moreover, I'm not sure what the implications of including the stack in the manner you're using might be. Ergo, one possible line of investigation is to verify that your form block is still getting a unique bID, and that this is being picked up properly on submission.

Could be difficult.

Let us hope that I am wrong.

Which is quite likely.
mnakalay replied on at Permalink Reply
mnakalay
Express forms also rely on bIDs but they shouldn't create any problem inside a stack unless the stack is added more than once to the same page.

Are you by any chance using a template for your form that maybe was built on a previous version of Concrete5 and you have since updated C5 to a newer version?

Did you try to add the form directly to the page without the stack to see if it works?

And last but not least when you say it doesn't submit correctly, what do you mean? Do you see any errors? What makes you say it doesn't submit correctly?