Close modal after add

Hi, I’m experiencing a strange behavior when adding a new row to a table. If I add a new row from the master/detail view, everything works well. However, if I add it from the table list view, the modal dialog doesn’t close.

I’ve tried removing all my scripts and code, but the problem still persists.Can you help me figure out why this is happening? Thank you very much.

You might have server side error, you may check HTTP response and the log file.

Okay, I’ve checked the logs and HTTP response and it looks like there are no errors.
However, upon inspecting another working page, I noticed some differences in the network inspection. It seems that it’s not launching a network event called MYPAGElist.
So it only has MYPAGEadd and not both MYPAGEadd and MYPAGElist.

That probably means you have server or client error from the Add page so the subsequent List page is not loaded to refresh the list page. You should check the HTTP response of the Add page in the Network panel as suggested in Check HTTP response. Make sure you have enabled the follows in your php.ini so the errors will be displayed by your PHP processor:

Press F12 in browser and go to the Console panel to check for JavaScript errors.

Make sure also you have already re-generated ALL the script files, and try again.

Make sure also you have already re-uploaded ALL the generated script files to your remote server, if necessary.