use variable value in redirect action


Hi –  I have a variable in the custom script action,

%%redirectURL = “”+sgapiGetRespondentSessionID()+”/somethingelse”


I want to use this %%redirectURL while mentioning the URL in the URL redirect action.





Prerak Kaushik asked

    Hi Prerak,

    I have 2 suggestions:

    If you are doing this in a custom script format replace your “+” with “.” to concatenate strings.

    Also, I have found I have more success with custom scripting when I declare it up front in a variable.

    Can you try inserting the following before you make the statement –

    %%userResponseID = sgapiGetRespondentSessionID();

    %%redirectURL = “”.%%userResponseID.”/somethingelse”

    Please let me know if it works for you.

    Jacob H (Moderator) answered


      Question stats

      • Active
      • Views2700 times
      • Answers1 answer
      • Followers0 followers