I have a form with an ajaxSubmitButton, and I would like to know how I can achive, that on press "enter" the form would be submitted to the ajax request, and not the the given action?
By now, the ajax request is only fired by the ajaxSubmitButton and not by pressing the "enter" button (by pressing "enter" the form would be submitted to the given action, so I set it to "javascript: return false;").
I see the ajax helpers in Yii only useful for simple cases. By using jquery "manually" you get the full power of AJAX and can do much like everything you want.
For this you can use the clientOptions:afterValidate.
I never tested, but according to documentation it looks like that you can trigger the ajax submission here and return false, in order to stop the usual submission.
I have two forms and the form2 will get a id of form1 and with this id have a function that will bring and populate the form 2 with information of database … how can I do it!