The ajaxSubmitButton on an activeForm works well, unless i render it via ajax. If i do this it does not use the action given with the button.
In brief, I have an edit button next to a gridview record. It has an onclick() that will run JS that will, via an action called ‘getRecord’, use the record’s PK to get and display the form and record’s data in a bootstrap modal so that the user can view/edit it. All this works fine, but if i then make and submit these edits, the ajaxsubmitbutton will call the previous ‘getRecord’ action instead of the ‘editHiveRecord’ action given as the button’s url.
Thanks for the suggestion, but it looks like i found the problem. I returned the form with the loaded model from the controller with renderPartial- it works if i use renderAjax.