How to get form values submitted over widget imbedded

The following script is the code i got from another service and i need to utilize submitted form fields elsewhere:

<script src="https://akiba-enterprise-widget-prod.web.app//Widget.js"></script>

    <script>
      const config = { 
        secretKey:"Pb7n4nAe.Sqw8CLEkc0MAdr5sOOIMJZUvrXNS2tj3", 
        embedUrl: window.location.href, 
        displayStyle: "fixed" 
      };
    window.widget.init(config);

</script>


$("#dummy").myDummyWidget();

var widget = $("#dummy").data("myDummyWidget");
$("#dummy").myDummyWidget("hide")
widget. Hide();