I have a working custom script in an action on a page, that creates a %%variable.
On a subsequent page, I wish to use this variable.
Yet, when running the script and displaying the variable on that subsequent page, it remains empty.
Why is this – how can I solve this?
I am going to take a stab at this. I believe once you create a variable inside an action it is similar to creating a variable inside of a function. It is not considered a GLOBAL variable, it is only present inside of that instance.
I would suggest creating a hidden value and at the end of your script us sgapiSetValue so that you can store and use this variable after the fact.
Let me know if this works for you.