Jump to content

Back Button Click Redirection

Recommended Posts

Hey all. I am working on this Back button. Two different levels of users for this app - Users and Editors. They both use the same details datapage for records.

I have a back button that takes the users back to the Tabular Report results page, however this is where I need to redirect the users based on an auth field.

Here is what I have. It does take you back to the Users Report version, but when the auth field is true, it does not take you to the Editors Report version.

Any help is appreciated.

<input type="button" class="rsAddNew" name="drop" id="redbutton" value="Back">

document.getElementById('redbutton').onclick = function() {
    if ("[@authfield:Employee_Table_ResourceCenter_Editor^]" == 'Yes') {
         window.location = "https://00000000.caspio.com/dp/e750500039f-------------";
    } else {
        window.location = "https://00000000.caspio.com/dp/e7505000ba817---------------";
    return false;


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.

Reply to this topic...

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