Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add New Functions to Formbricks Pixel #2511

Open
jonas-hoebenreich opened this issue Apr 23, 2024 · 0 comments
Open

[FEATURE] Add New Functions to Formbricks Pixel #2511

jonas-hoebenreich opened this issue Apr 23, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@jonas-hoebenreich
Copy link
Contributor

Is your feature request related to a problem? Please describe.

I would like to suggest to add the following two functions to the formbricks pixel (wording tbd):

  • formbricks.isInitialized() returns true if Formbricks is initialized, false otherwise (e.g. before formbricks.init() call or after formbricks.logout())
  • formbricks.inCooldown() returns true if the user already saw a survey and is in recontact waiting time phase (the user might still be able to see surveys that ignore the recontact waiting time) and false otherwise

Describe the solution you'd like

Add those functions to js-core

Describe alternatives you've considered

Directly check formbricks-js in local storage (but this is cumbersome and not future proof).

Additional context

No response

@jonas-hoebenreich jonas-hoebenreich added the enhancement New feature or request label Apr 23, 2024
@jonas-hoebenreich jonas-hoebenreich changed the title [FEATURE] [FEATURE] Add New Functions to Formbricks Pixel Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant