Jump to content
  • 0

Redrect Url Based On Authfield Value



We have an app where we are using an html page with a javascript redirect based on a value in the authfield.  The problem we are having is when staff updates the value and sends the customer an email with the link, if the customer was already logged into the site and clicks the link their authfield value has not been updated because they were logged in with the old value.  Is there a way to force the refresh of the authfield values or another solution we can use?  The redirect we are using is posted below:


if("[@authfield:PaymentVerified^]" == "No") {
window.location = "[@app:PaymentInstructionsURL]?PersonID=[@authfield:PersonID#]";
} else { 
window.location = "[@app:CustomerDashboardURL]?PersonID=[@authfield:PersonID#]";
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hello DCT,


Welcome to Caspio forum!


If I understand correctly, a user clicks the Update button of a DataPage to update the value. You can edit your DataPage, and in the Destination and Emails screen select Go to a new page, and enter the logout link in the Page URL field, like



A user updates his or her record, and then he or she is logged out.


Does it work for you?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...