Use %%variable defined in custom script is “empty” when using it on subsequent page

0

Hi,

 

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?

 

Thx,

 

Guy

Jacob H (Moderator) answered
    1

    Hi Guy,

    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.

    Thanks!

    Jacob H (Moderator) answered
      ×

      Login

      Question stats

      • Active
      • Views2065 times
      • Answers1 answer
      • Followers1 follower