OK here is my issue, I copy the jquery UI modal/dialog code directly from the Jquery UI site, and the example works perfect. The modal pops up with a form and the whole thing is flawless. When I try to call the same dialog from within a form (trying to add a new record) the dialog flashes on the screen and then is hidden. If I remove the button calling the dialog from the form and place it before or after it works just fine again. Driving. Me. Crazy.OK here is my issue, I copy the jquery UI modal