Hi Everyone, I’m Meenu Hinduja and my husband Dheeraj Sudan, run a business. I’m trying to set a default value using query parameters in production, but I’m running into some issues. In preview mode, everything works as expected, but once I publish, the default value doesn’t seem to apply correctly. Has anyone successfully implemented this?
In the editor, the default value is used to make development easier when navigating between pages.
In prod, what can work do is to have a workflow (on page load (before collection load) if you are using the query param to fetch a collection). In that workflow, you can have an action “change variable value) targeting the query parameter. Your query parameter needs to be created as a variable before that, in the data panel.
Thank you for the guidance! I’ll create the query parameter as a variable in the data panel and set up the page load workflow to change its value before the collection loads. Appreciate the help!