Is there a way to open an element in a new card and do a set on that element at the same time?
Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 18th September 2023
You could consider the following:
- Add a SetVar to the shape that opens your element, along with the NewCardVariable option.
- In the Visual overview of the shape you're opening, add the Execute page data and use it to execute a script that passes the session variable. Use ExecuteSetsOnInit if the script doesn't seem to execute otherwise.
- Create a script that takes in a parameter and set the parameter of your choice to the value that is passed.
Toon Casteele [SLC] [DevOps Enabler] Posted new comment 22nd September 2023
If I open the element now manually it will also trigger the script to be executed.
Is there a way to make sure the script only gets executed when I navigate from the other view?
If you limit the variable scope, you can probably get the variable to be empty and thus the script to not execute?
I’ll give it a try, thanks!