kpcollier Posted January 16, 2020 Report Share Posted January 16, 2020 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; } Quote Link to comment Share on other sites More sharing options...
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.