Created
December 4, 2019 15:34
-
-
Save otarsko/92d5c1bc3a4b650ba1f0f839b63b2b69 to your computer and use it in GitHub Desktop.
Adobe Experience Cloud without AEM | Contact form submit handler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
handleSubmit = event => { | |
localStorage.setItem("likeCats", this.state.likeCats); | |
var event = new CustomEvent('contact-form-submit'); | |
var obj = document.querySelector("body"); | |
obj.dispatchEvent(event); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment