You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no way of detecting when a form has been cancelled
Additional info
Discord message: _----------------------
Based on the provided knowledge sources, there doesn't appear to be a direct way to detect when a useForm has been cancelled. The documentation for useForm and related form functionalities in Devvit doesn't explicitly mention a cancellation detection mechanism.
The useForm hook, as described in the Public API documentation (https://developers.reddit.com/docs/api/public-api/#functions-1), takes two parameters: the form object and an onSubmit callback. It returns a FormKey, but there's no mention of a cancellation callback or event.
While forms in Devvit can have a cancel button (as mentioned in the Form object documentation (https://developers.reddit.com/docs/capabilities/forms#form-object)), there doesn't seem to be a built-in way to detect when this button is pressed or when the form is otherwise cancelled.
If you need this functionality, you might want to consider alternative approaches or request this feature through official Reddit Developer Platform channels. However, based on the current documentation, there's no direct method to detect form cancellation when using useForm.
Note: you can ask me a follow up question by @ mentioning me again 💬
----------------------_
Details
There is no way of detecting when a form has been cancelled
Additional info
Discord message: _----------------------
Based on the provided knowledge sources, there doesn't appear to be a direct way to detect when a
useForm
has been cancelled. The documentation foruseForm
and related form functionalities in Devvit doesn't explicitly mention a cancellation detection mechanism.The
useForm
hook, as described in the Public API documentation (https://developers.reddit.com/docs/api/public-api/#functions-1), takes two parameters: the form object and anonSubmit
callback. It returns aFormKey
, but there's no mention of a cancellation callback or event.While forms in Devvit can have a cancel button (as mentioned in the Form object documentation (https://developers.reddit.com/docs/capabilities/forms#form-object)), there doesn't seem to be a built-in way to detect when this button is pressed or when the form is otherwise cancelled.
If you need this functionality, you might want to consider alternative approaches or request this feature through official Reddit Developer Platform channels. However, based on the current documentation, there's no direct method to detect form cancellation when using
useForm
.Note: you can ask me a follow up question by @ mentioning me again 💬
----------------------_
Message author: http://kapa.ai|kapa.ai
Discord link: https://discord.com/channels/1050224141732687912/1316455772527399013/1316455820216766506
The text was updated successfully, but these errors were encountered: