Formbricks Open source Forms & Surveys Logo

Actions

Code Actions

Actions can also be set in the code base. You can fire an action using formbricks.track()

formbricks.track("Action Name");

Here is an example of how to fire an action when a user clicks a button:

const handleClick = () => {
  formbricks.track("Button Clicked");
};

return <button onClick={handleClick}>Click Me</button>;
Was this page helpful?
Previous
No-Code Actions

Need help? 🤓

Join our Discord and ask away. We're happy to help where we can!

Join Discord