How can I redirect after use an API. I'm using the api in a URL.

  • 0
  • 1
  • Question
  • Updated 3 years ago
  • Answered

I'm using this is link: https://..../db/....?a=API_EditRecord&_fid_43=Yes&rdr=https://.../db/....?a=dr&rid=500. It is editing my record but it is not doing the rdr. How can I do it?



Photo of Lina

Lina

  • 0 Points

Posted 3 years ago

  • 0
  • 1
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 65,280 Points 50k badge 2x thumb
https://..../db/....?a=API_EditRecord&_fid_43=Yes&rdr=https://.../db/....?a=dr&rid=500

Try this format.

var text URLONE  = xxxxxx;

var text URLTWO  = xxxxxx;

$URLONE
& "&rdr=" & URLEcode ($URLTWO)

Be sure to end your formula variables in a semi colon.

The point is that you need to URLEncide the the redirect target.
Photo of Lina

Lina

  • 0 Points
Is the function URLEcode a quickbase function? This link is in a javascript file, no into a formula field.
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 65,280 Points 50k badge 2x thumb
My answer assumed that you were building a native formula in QuickBase.  Since the questions has been marked as Answered, I suggest that you re port your question and explain that you are using it in JavaScript.