nkhanna24 Posted February 5, 2013 Share Posted February 5, 2013 hi all i have a form and two submit buttons.(submit and submit to all) so i have to call two different actions depending on which button is clicked.two actions are in same controller. how can i achieve that? thanks in advance Link to comment Share on other sites More sharing options...
Edward Posted February 5, 2013 Share Posted February 5, 2013 You could setup two model scenario rules so that only certain data was required or to be validated for each situation. Then load up relevant models in view. Really it depends on what you are doing, so explaining a little more detail would be nice. 1 Link to comment Share on other sites More sharing options...
nkhanna24 Posted February 5, 2013 Author Share Posted February 5, 2013 okay....it is a question post if i click button1 actionask() is called and question is posted..... there are diff institutes so if i click on button2 it should post in all institutes.....for which i have made a different action actionaskall() in same . so how do i call 2nd action when 2 button is clicked...? Link to comment Share on other sites More sharing options...
Edward Posted February 5, 2013 Share Posted February 5, 2013 Okay you would be able to save the appropriate action getting the post submission response in the controller. Then save data to the relevant model. Link to comment Share on other sites More sharing options...
Recommended Posts