Flatfile offers some simplified methods you can use when embedding Platform into your application. These include onRecordHook, onSubmit, and sheet[]. These are built to make your implementation as easy and quick as possible, but they come with some tradeoffs for that simplicity. Many of the customization options you'll be able to implement if you implement a listener instead of these methods, like changing the name of the button, adding submission constraints, or modifying the job outcome, cannot be changed with the simplified methods. If you want to be able to implement those changes we would recommend updating to use a listener and custom actions to achieve a more complex implementation!
Written by Elisa Dinsmore
Updated over 6 months ago