il_dandi
(Dandi Box)
1
In my view I’ve a main form and 2 modalspopup
<? $this->renderPartial(‘passwordModal’, array(“add”=>false,“ag”=>$ag)); ?>
<? $this->renderPartial(‘uploadModal’, array(“add”=>false,“ag”=>$ag)); ?>
Problem is that when I show first modal code, main forms stops to work.
Showing only second it works also main form (could be because we’ve enctype=‘multipart/form-data’ in second modal???)… means a different enctype?
But my question is: how Can I manage these 3 forms (main form and 2 modals) keeping working main form?
Thanks
Hi,
May I know what type of form ( whether cActiveform or your custom form) you are using?
Please check for the form name and id tags of the forms . It will work!
Good luck!
il_dandi
(Dandi Box)
3
Here my forms
main form
<form method="post" action="<?php echo Yii::app()->request->baseUrl; ?>/ag/index/<?=$ag->id?>">
subform 1
<form method="post" action="<?php echo Yii::app()->request->baseUrl; ?>/ag/index/<?=$ag->id?>">
subform 2
<form method=“post” action="<?php echo Yii::app()->request->baseUrl; ?>/ag/uploadmedia" enctype=‘multipart/form-data’>
Can you help me to manage renderPartial for open 2 modal pop where I’ve 2 subforms?
Thanks
il_dandi
(Dandi Box)
4
I resolve problem about modals, inserting differents id for modals
what still don’t works are forms, main form don’t works cause of I’ve form in modal
Here my forms
main form
<form method="post" action="<?php echo Yii::app()->request->baseUrl; ?>/ag/index/<?=$ag->id?>">
subform 1 in modal 1
<form method="post" action="<?php echo Yii::app()->request->baseUrl; ?>/ag/index/<?=$ag->id?>">
subform 2 in modal 2
<form method=“post” action="<?php echo Yii::app()->request->baseUrl; ?>/ag/uploadmedia" enctype=‘multipart/form-data’>
Can you help me?
Thanks
Hi try with
<form name="main_form".....>
Sub Form
<form name="sub_form1 ....>
and so on but keep single submit button. Let see it works !! else
reply here …
il_dandi
(Dandi Box)
6
I set name="" tag for all my forms, but what do you mean with "keep single submit button"?
I’ve 3 buttons, one for every form
–
<input type="submit" value="Salva" class="btn btn-primary">
–