Skip to main content
June 16, 2015
Question

Firing a trigger when user clicks page element

  • June 16, 2015
  • 1 reply
  • 716 views

Sorry, Newbie here, but I didnt find an answer to this question.

I have a Angular, single page website app.  There are no links, but javascript events that cause the web app to do different things.  The site has member functionality where once signed in they can do unique functions.  I want to be able to trigger an email if a person clicks on a given CSS element on the page. 

Where should I be looking to find an answer on how to do this?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

SanfordWhiteman
Level 10
June 16, 2015

You'll use the Munchkin API, specifically the Munchkin function 'clickLink'.  This creates a synthetic link click event you can use to flag interesting client-wide events.  Craft a synthetic path such as '/functions/menus/file/save-as' (for a wild example) for in-app actions.