Please set Formbricks environment variables in apps/demo/.env

Formbricks In-product Survey Demo App

This app helps you test your in-app surveys. You can create and test user actions, create and update user attributes, etc.

1. Setup .env

Copy the environment ID of your Formbricks app to the env variable in demo/.env

fb setup

You're connected with env:

2. Widget Logs

Look at the logs to understand how the widget works. Open your browser console to see the logs.

Reset person / pull data from Formbricks app

On formbricks.reset() a few things happen: New person is created and surveys & no-code actions are pulled from Formbricks:.

If you made a change in Formbricks app and it does not seem to work, hit 'Reset' and try again.

This button sends a Code Action to the Formbricks API called 'Code Action'. You will find it in the Actions Tab.

This button sends a No Code Action as long as you created it beforehand in the Formbricks App. Here are instructions on how to do it.

This button sets the attribute 'Plan' to 'Free'. If the attribute does not exist, it creates it.

This button sets the attribute 'Plan' to 'Paid'. If the attribute does not exist, it creates it.

This button sets the user email 'test@web.com'

This button activates/deactivates user identification with the userId 'THIS-IS-A-VERY-LONG-USER-ID-FOR-TESTING'