Jump to content
  • 0

Redirect User if Parameter Value Blank


JayDub
 Share

Question

Hi - I've created a shopping cart process using Caspio. By design, this process could not use authentication in Caspio - it had to allow a user to move through the shopping cart without having to login. Instead, I use a parameter value passed from page to page as the user moves through the cart process to uniquely identify them. Everything works fine with one exception: if a user completes a purchase using a credit card and then tries to hit the back button, they wind up at a previous page in the cart process (there are three separate pages in all) but with no parameter value being passed (I delete the parameter value from the database once they successfully submit payment information.)

My first thought was to just use a Rule on the datapages in the cart process that would hide each datapage if the parameter value was blank. But that doesn't work because each of the datapages has required fields, which means they can not be hidden with a DataPage rule. Is there anyway to redirect a user elsewhere (like my home page) if they go to one of the checkout pages and no parameter value is passed in? (This might also happen if someone bookmarks one of the pages in the cart process and tries to go back to it later.)

Any suggestions are welcome!

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

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.

Guest
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.

Loading...
 Share

×
×
  • Create New...