Jump to content

PDSRQ

Members
  • Posts

    7
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

PDSRQ's Achievements

  1. Updated Script to show below, but it does NOTHING. For a while when I didn't put the script, but put it in a conditional app, the only things that showed up was the @with the app name for the conditional menu, but if I post the script below, it is blank. Very odd. <div id="navMenuConditional"></div> <script> document.addEventListener('DataPageReady', function (event) { if ('[@authfield:Sarasota_Users_1_Role]' == 'Finance') { document.querySelector('#navMenuConditional').innerHTML = '[@app:FiscalNavigation2022]' } else if ('[@authfield:Sarasota_Users_1_Role]' == 'Cost Center') { document.querySelector('#navMenuConditional').innerHTML = '[@app:CostCenterNavigation2022]' } }); </script>
  2. I ammended it below, but it doesn't work. Does anyone have any ideas? The table name is Sarasota_Users_1 and the filed is Role. Different types of roles listed are : Finance, Cost Center, Admin. Thanks for any help you can provide as I am trying to add this to the header. (Also, does anyone know if you could take the script below and make it an App?) <div id='navMenuConditional'></div> <script type="text/javascript"> document.addEventListener('DataPageReady', function (event) { if ('[@authfield:Sarasota_Users_1_Role]' == 'Finance') { document.querySelector('#navMenuConditional').innerHTML = '[@app:FiscalNavigation2022]' } else if ('[@authfield:Sarasota_Users_1_Role]' == 'Cost Center') { document.querySelector('#navMenuConditional').innerHTML = '[@app:CostCenterNavigation2022]' } }); </script>
  3. I found this in the community forum: https://forums.caspio.com/topic/16540-navigation-menu-that-varies-by-user-or-user-role/#comment-44997 I ammended it below, but it doesn't work. Does anyone have any ideas? The table name is Sarasota_Users_1 and the filed is Role. Different types of roles listed are : Finance, Cost Center, Admin. Thanks for any help you can provide as I am trying to add this to the header. (Also, does anyone know if you could take the script below and make it an App?) <div id='navMenuConditional'></div> <script type="text/javascript"> document.addEventListener('DataPageReady', function (event) { if ('[@authfield:Sarasota_Users_1_Role]' == 'Finance') { document.querySelector('#navMenuConditional').innerHTML = '[@app:FiscalNavigation2022]' } else if ('[@authfield:Sarasota_Users_1_Role]' == 'Cost Center') { document.querySelector('#navMenuConditional').innerHTML = '[@app:CostCenterNavigation2022]' } }); </script>
  4. I have a tabbed interface website that I have had to develop outside of Caspio. I have embedded the datapages within that website. The Login screen authenticates the person and sends them to a particular databage based on their credentials. However, in my outside site, when it redirects, it directs to the full datapage and doesn't keep it on the tabbed interface. It goes to the full datapage and my tabbed interface disappears. The tabbed interface doesn't exist within Caspio because I have to imbedd the other datapages into the tabbed interface, which caspio doesn't support. Basically, I need a way for them to login and then be redirected to the appropriate website and stay within the tabbed interface.
  5. Still nothing. I have this on the details page. Is there a setting I should use on the virtual field? Right now it is text field, but I don't have any of the advanced tab filled out, should there be something there on load?
  6. I am having trouble with this format. I have the virtual field (to load email) on details page and the following script on the footer, but cannot get things to work. I am not sure if the virtual field should be text and if there should be anything else marked for the external associations and defaults. Could you provide any assistance from what you have done? <SCRIPT LANGUAGE="JavaScript"> function insert() { var x= document.getElementById("EditRecord[@field:PBAEmployeeTable_EmployeeEmail]").value; document.getElementById("cbParamVirtual1").value = x; } document.getElementById("EditRecord[@field:PBAEmployeeTable_YearLastNotified]").onchange=insert; </SCRIPT>
  7. I am looking for a way to have employee data with a due date that is autopopulated, then it send an automatic notification 30 days before the due date. There doesn't seem to be a away to have auto emails send without interaction/modification with the data. I need it to run in the background without my assistance.
×
×
  • Create New...