I’m trying to create custom views based on different form states. I’m using the native form component from Builder.io, which works really well. It even provides built-in loading and success messages, which is great! However, I want to create my own custom messages or screens based on the form’s state (e.g., loading, success, error).
The challenge I’m facing is figuring out how to access the form’s state to dynamically show or hide my custom screens. Manually adding a state doesn’t seem to work because I don’t know how to detect when the form has successfully submitted or encountered an error.
How can I achieve this?