Hello Friends,
If you are using multiple forms in symfony2 web page and getting issue to fetch data from multiple form. Please review the code below and make the adjustment accordingly. In the below example I am using two forms 1) $Kickedform and 2) $VendorForm
Open your controller file and function to handle these requests:
if(isset($request->request->get('form')['kickbackFlag'])){
$Kickedform->handleRequest($request);
}elseif(isset($request->request->get('form')['VendorForm'])){
$VendorForm->handleRequest($request);
if ($VendorForm->isSubmitted() && $VendorForm->isValid())
{ #Do your functionality for VendorForm }
if ($kickbackFlag->isSubmitted() && $kickbackFlag->isValid())
{ #Do your functionality for kickbackFlag }
0 Comment(s)