Forum for discussing general topics related to Couch.
3 posts Page 1 of 1
So, I have two forms on the web site. One of the forms is on a page which opens in a bootstrap modal. The thing is when that page is opened it doesn't show the page full url, like for instant the page is cloned, its url is http://www.xyz.com/products.php?p=47, but when that page opens in the modal the cloned page url doesnt show like that it has only the http://www.xy.com. When the form is submitted the url shows http://www.xy.com/#formname but doesn't post anything to mail.

I've come to notice if I post the form using the full url http://www.xyz.com/products.php?p=47#formname , the form works just fine.

How do I make the form work like that even when the form opens in a modal?
Hello,

since the form doesn't 'know' which url it needs to send submitted data to, please specify the target url in the 'action' parameter of the 'cms:form' tag.
trendoman wrote: Hello,

since the form doesn't 'know' which url it needs to send submitted data to, please specify the target url in the 'action' parameter of the 'cms:form' tag.


Hi Trendoman,
I added action parameters as shown below and it works fine now. Thanks for pointing me to the right direction. :)
Code: Select all
<cms:form action="<cms:link 'products.php' />?id=<cms:show k_page_id />" method="post" class="form-inline" id='gff-form' name='customize_form'>
3 posts Page 1 of 1