Skip to content

Instantly share code, notes, and snippets.

@otarsko
Created December 4, 2019 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save otarsko/92d5c1bc3a4b650ba1f0f839b63b2b69 to your computer and use it in GitHub Desktop.
Save otarsko/92d5c1bc3a4b650ba1f0f839b63b2b69 to your computer and use it in GitHub Desktop.
Adobe Experience Cloud without AEM | Contact form submit handler
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