To get the screen ID of the current screen a user is viewing, you can use the following code:

var usersScreenID = Fliplet.Env.get('pageId');

You could then check if the user is on a certain screen. To do this, first you retrieve the ID of the user’s current screen. Then, if the user’s screen ID matches the one you’re interested in (eg: if it matches 83495 in the example below) you can then run some custom code.

var usersScreenID = Fliplet.Env.get('pageId');

if (usersScreenID === 83495) {
  // if the users current screen has the ID of 83495 then run some custom code here
}
Was this article helpful?
YesNo