function onsubmit() {
var dt = $('#formx').serializeArray();
$("#flex1").flexOptions({params:dt});
return true;
}
this will overwrite the initial value of p.params, so if you have initial value set in, then its probably better to add it to the form as well as hidden inputs.
note the return true in the function, because if you return false, the flexReload action will cancel, this is useful if you want to add a validation in your forms.
then also block the form's submit event to call flexReload instead like this: