Pricing Blog

How can a page determine if it is running in the editor?

  • patrickmast-1309600404652298271

    Patrick Mast

    7 months ago

    I have a workflow that triggers on “OnLoad.” How can I prevent it from running while editing the page in the editor? How can the page detect whether it’s running in the editor or not?
  • erikbeus-1309607768721850438

    Erik Beuschau

    7 months ago

    Perhaps your own answer here could be a possible solution? 🙂 https://discord.com/channels/972416966683926538/1270340122117799946/1273616166509613128
    By determining whether the app is running in an iframe you could prevent your actions from running on load. Alternatively, if you have a custom domain, you could use the Current URL formula to determine if the app is loaded on a *.toddle.site domain or not and use that as your condition.
  • patrickmast-1309611968822247464

    Patrick Mast

    7 months ago

    Oh dear.. Thanks for the reminder! 🙏 🤦‍♂️