use variable value in redirect action

0

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

%%redirectURL = “mydomain.com/myval/”+sgapiGetRespondentSessionID()+”/somethingelse”

 

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

 

 

Thanks

 

Prerak Kaushik asked
    0

    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 = “mydomain.com/myval/”.%%userResponseID.”/somethingelse”

    Please let me know if it works for you.

    Jacob H (Moderator) answered
      ×

      Login

      Question stats

      • Active
      • Views450 times
      • Answers1 answer
      • Followers0 followers