PricingBlog

"Show" based on URL parameters not working on the editor

  • victoruxui-1172417298636742676

    Victor Giron

    2 years ago

    I have a URL parameter called "movie_id" and to show a modal, I use the condition showed on the screenshot.
    This works great on the preview link and the deployed app, but on the editor it's always showing even when there's no "movie_id" parameter on the url.

    Is there a way to make this work on the editor? I'm going to be using the url queries a lot to show/hide elements on the page.
    1172417298825482280-image.png
  • andreasmoller-1172417622181163080

    Andreas Møller

    2 years ago

    You can set a test value for the param
  • victoruxui-1172420989028683857

    Victor Giron

    2 years ago

    Currently I have my test query empty, because I want the popup to display when the query "movie_id" is empty, I tried adding a "not" at the end and that makes the popup to hide on the editor, but then on the preview link happens the opposite: it displays when the query is empty
    1172420988839936042-image.png