Contributing
Demo App
To play around with the in-app User Actions, you can use the Demo App. It's a simple React app that you can run locally and use to trigger actions and set Attributes.

Functionality
Code Action
This button sends a Code Action to the Formbricks API called 'Code Action'. You will find it in the Actions Tab.
Track Code action
formbricks.track("Code Action");
No Code Action
This button sends a No Code Action as long as you created it beforehand in the Formbricks App. For it to work, you need to add the No Code Action within Formbricks.
Track No-Code action
<button>No-Code Action</button>
Set Plan to "Free"
This button sets the attribute 'Plan' to 'Free'. If the attribute does not exist, it creates it.
Set Plan to Free
formbricks.setAttribute("Plan", "Free");
Set Plan to "Paid"
This button sets the attribute 'Plan' to 'Paid'. If the attribute does not exist, it creates it.
Set Plan to Paid
formbricks.setAttribute("Plan", "Paid");
Set Email
This button sets the user email 'test@web.com'
Set Email
formbricks.setEmail("test@web.com");
Set UserId
This button sets an external user ID in the Formbricks init call to 'THIS-IS-A-VERY-LONG-USER-ID-FOR-TESTING'
Set User ID
userId: "THIS-IS-A-VERY-LONG-USER-ID-FOR-TESTING";