How to perform a fake true insert? (v2020)

If you don’t need to insert a record, you don’t need to make a modal Add page at all. If you just want to create a modal dialog for user to choose something, just use sweetalert, see Input Types → select.If you must use the Add form, you need to return JSON result to simulate success, check HTTP Response and return your JSON result similarly.