Custom JS: what tab is currently active?

Home Forums Classic DFFS Custom JS: what tab is currently active?

Viewing 1 reply thread
  • Author
    Posts
    • #35916
      Jon Whisman
      Participant

        Hi,

        Is there an spjs.dffs function or otherwise that I can leverage that identifies what tab is currently active?

        Looking for something I can leverage at a global level. EG: for any function calls I make in my custom JS, I want to “know” what tab we are currently in so that I can target rules for that tab or not.

      • #35917
        Alexander Bautz
        Keymaster

          Hi,
          You can use this variable:

          spjs.dffs.data.selectedTab
          

          Alexander

      Viewing 1 reply thread
      • You must be logged in to reply to this topic.