0

I want to incorporate tabs in my form(it is dependent on multiple models) with next and previous button, and onclick of these buttons should validate the fields with comes only in their respective tabs but form should be submitted/saved to DB only at the end.

I have gone through my tabs example but they don't seem to have next and previous button in yii2.

Is there anyway to do this??

Rachna
  • 39
  • 13
  • 1
    you can use form wizard – Yasin Patel Mar 16 '17 at 05:18
  • yes, i went through this http://www.yiiframework.com/extension/yii2-wizardwidget/ but they are using only text in content attribute. what i need is activefields which i am not able to implement – Rachna Mar 16 '17 at 07:35
  • http://demos.krajee.com/tabs-x try using this – vijay nathji Mar 16 '17 at 09:26
  • But as I mentioned in my question, i need button like next / previous to navigate between tabs. – Rachna Mar 16 '17 at 10:30
  • either tabs or wizard is needed but having no luck with both, I had asked another question regarding wizard here http://stackoverflow.com/questions/42808416/unable-to-implement-yii2-wizard – Rachna Mar 16 '17 at 10:34

0 Answers0