If it is auto-generated I suppose that the page will loop and self-reload (controller/action) when the submit button is pressed. In that sense, I assume the logic of the action in that controller has to detect somehow when the page is originally loaded or when it is loaded from the click on the submit button.
I just had a look at the controller and it implements an ‘if’ statement to check whether the ‘$_POST’ is set. And as you suggested, I’ve found that the action could be changed in the htmlOptions if needed.