Hi, that's possible but there are about 50 fields so the query string might be too long.
A query string of 50 fields would be too long.
FrmEntry::destroy() does indeed delete an entry and then clears Formidable's db caches of any remnants.
There are no PHP hooks that can detect when a form is successfully loaded into a browser window. That's a Document Object Model (DOM) event that can be detected by jQuery. I think what you need to do is pass the Form A entry id to Form B and save it in a hidden field. This way you can trigger an Ajax call to delete the Form A entry on the server when document.ready() triggers.
If you're not familiar with Ajax, the jQuery sends a request to the server to execute a custom PHP function. The reason you save the Form A entry id in Form B is to pass it as the Ajax parameter to your custom function.
Please login or Register to submit your answer