'Get acknowledgment on embedded google form submission in react

Trying to embed a google form in my react application, but the main POC is getting a trigger/acknowledgment/control in my code, when a user successfully submitted the form.

Didn't find any viable react library, which provides component API that can be used to embed a google form in the UI, given the form ID or form URL as an input.

// Found this library but deprecated 
// https://www.npmjs.com/package/react-google-forms
react-google-forms

Following is the code to embed a form in native:

<iframe src="https://docs.google.com/forms/d/e/1FAIpQLScIQptGdp7E059dcoAgvV_S7aypf0JNHilHWQfCQsjmssM8Bg/viewform?embedded=true"
    width="640"
    height="522"
    frameborder="0"
    marginheight="0"
    marginwidth="0"
>
 Loading...
</iframe>

How can we get something like a callback from the form when it is submitted ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source