Jump to content

zalipresents

Caspio Ninja
  • Posts

    28
  • Joined

  • Last visited

  • Days Won

    1

zalipresents last won the day on September 21 2017

zalipresents had the most liked content!

zalipresents's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. I'm having issues with the below script's, any suggestions? <script>if("[@field:Calendar_Day_Type]" != "Gig" & "[@authfield:Band_Member_Level]" == "10"){document.write("<a onclick=\"window.open('https://c0ebl287.caspio.com/dp.asp?AppKey=68bd3000d24ddf1e8c9e4dd4a994&amp;Random_Show_ID=[@field:Random_Show_ID]','_blank','width=800,height=700,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false\"><span style='color:#000000;cursor:pointer;' title='[@field:Artist] - [@field:Play_Date*] - DETAILS PAGE'>[@field:Artist]</span></a>");}</script> How about this one: <script> var cb_boolean = '[@field:Show_Outside]'; if (cb_boolean == 'Yes') { document.write("<img src='https://storage.googleapis.com/zali_circle_icons/sun_50x50.png' style='width: 15px; height: 15px; vertical-align: top;' title='This show is outside' />"); } </script>
  2. I'm looking for a listbox to only have enough rows for the contents of the list...you can set it for a certain number of rows, but if you set it for 5 rows and consistently have 2 records, then there is extra space...I'd like the list box to be smart and not have the extra space.
  3. Also...how do you get this script to work for multiple sections? What I'm looking to do is have different sections that display the fields in those sections when the user clicks on the name of the section. The code provided works for one section, but when I try to use it for multiple sections on a list datapage, it only works for the first section...all others fail to open/close.
  4. May Music, Works great on a list, how do I get this same function to work on a calendar datapage?
  5. MayMusic, How do I take this script and make it display on the value of an a field? I need this button to hide if the field "Day Type" is not equal to "Gig"...where can that be inserted into the code?
  6. Anyone know how to have the listbox height be automatic based on how many records there are in it? At times my users have 2 records & others 5+ records so having a box that auto sizes per the number of records would be optimal.
  7. I use a script in the footer of every datapage to have the tab header include my logo & the name of the datapage. What I need now is for the tab header to also include a string field from the datapage...how do I do that?Current footer code is:<script>var v_link = document.createElement('link');v_link.setAttribute("href", "http://login.zalipresents.com/wp-content/uploads/2015/09/Zali_logo_Z_Tab_Icon.png");v_link.setAttribute("rel", "shortcut icon");document.head.appendChild(v_link);</script>I'd like to have the tab label read: Z (logo inserted like screen shot) WORKING - [Artist]...i'd like this artist name to also show up in the little box that pops up when you hover over the Z or WORKING. Any suggestions? The field is called "Artist"
  8. Can someone help with this javascript please...I'm using a submission form and one of the fields in the calculation is a cascading dropdown with a parent of Merchandise_ID and the other is a text input field. Not sure why its not working, but nothing is showing up in the destination field. <strong><span style="color:#000000;"></span></strong> <strong><span style="color:#000000;"> <div id="mypage1"> </div> <SCRIPT LANGUAGE="JavaScript"> function calculate() { var Gross_Qty_Sold = isNaN((parseFloat(document.getElementById("InsertRecordGross_Qty_Sold").value)))?0:(parseFloat(document.getElementById("InsertRecordGross_Qty_Sold").value)); var Merchandise_Cost = isNaN((parseFloat(document.getElementsByName("InsertRecordMerchandise_ID_Merchandise_Cost")[0].value)))?0:(parseFloat(document.getElementsByName("InsertRecordMerchandise_ID_Merchandise_Cost")[0].value)); var total= (Gross_Qty_Sold * Merchandise_Cost); document.getElementById("mypage1").innerHTML=' $'+total ; document.getElementById("InsertRecordGross_COGS").value=total.toFixed(2) ; } document.getElementById("InsertRecordGross_Qty_Sold").onchange=calculate; document.getElementsByName("InsertRecordMerchandise_ID_Merchandise_Cost")[0].onchange=calculate; calculate(); </SCRIPT> </span></strong>
  9. Item is: Socks quantity user enters a socks purchase in the submission form. This new number of socks purchased passes to the table "Purchases" and also passes to the table "Merchandise". The Merchandise table already has Socks as an item and has a value listed in the "purchases" field & I'd like the new purchases to get added to it. Socks has an ID that will match the current Merchandise table. Make sense?
  10. I have 2 tables for T-shirts:1 - purchases2 - InventoryI'm trying to submit a purchase through a submission for that gets listed in the purchases table (this part is easy), but then I need the inventory table to add the value purchased for that item to the current value in the table for that item to create a new value for that item that includes what was purchased already & what has just been purchased. I've been thinking on this for a while and can't seem to understand how to pass the parameter to two spots + have the 2nd spot get this parameter added to its current value. The purchases table will log purchases per item per date purchased while the inventory table will have quantities per item with only one record per item. I'm thinking that I need to have some javascript that tells the inventory table to "get" the new purchases and "add to" the current value. Any suggestions here?
  11. Thanks Walter I'll give that a try...do you know how to add display order functions to this code too? I'd like to have at least 3 options to display by...item, then color, then size & the display item name is different than the actual item name too so there is also that to consider.
  12. Does anyone know any additional script to allow for more than one radio button selection at a time? I'm displaying products of an inventory and need the user to be able to select only the ones they want to see in the next screen & can't seem to get anything to allow for more than one selection. I understand that the list box can do it, however the items have to be consecutive in order & if you add more items to the list, the list box doesn't auto expand. Radio buttons are preferred in this case as they are a much cleaner looking list of items. Thanks!
  13. the solutions to this is in the styles section...make a copy of the styles sheet before you alter it because there are tons of little changes that you can make to nearly every aspect of Caspio. Once you get in there, it should all make sense.
  14. Please help...i'm using the below script in a details page to calculate "Show Gross" and the formula is not calculating any numbers past the decimals. I've tried changing the "total" to "total.toFixed(2)" in a variety of ways and it didn't help...also tried adding in ".toPrecision()" and it didn't work. I can get the end cell to have 2 spaces with ".toFixed(2)", however the calculation does not calculate anything past the decimal. Didn't realize this was an issue till just now & I am in a bind...please help:) It feels like I need to tell the formula to calculate the numbers past the decimals, however I'm not sure on how to do that. <SCRIPT LANGUAGE="JavaScript"> function calculate() { var Settle_ADV_Gross = isNaN((parseInt(document.getElementById("EditRecordSettle_ADV_Gross").value)))?0:(parseInt(document.getElementById("EditRecordSettle_ADV_Gross").value)); var Settle_DOS_Gross = isNaN((parseInt(document.getElementById("EditRecordSettle_DOS_Gross").value)))?0:(parseInt(document.getElementById("EditRecordSettle_DOS_Gross").value)); var Settle_Walk_Up_Gross = isNaN((parseInt(document.getElementById("EditRecordSettle_Walk_Up_Gross").value)))?0:(parseInt(document.getElementById("EditRecordSettle_Walk_Up_Gross").value)); var total= Settle_Walk_Up_Gross + Settle_DOS_Gross + Settle_ADV_Gross; document.getElementById("mypage").innerHTML=' $'+total ; document.getElementById("EditRecordSettle_Show_Gross").value=total ; } document.getElementById("EditRecordSettle_Walk_Up_Gross").onchange=calculate; document.getElementById("EditRecordSettle_DOS_Gross").onchange=calculate; document.getElementById("EditRecordSettle_ADV_Gross").onchange=calculate; calculate(); </SCRIPT> </span></strong>
  15. Hold the phone, i figured it out and its so super simple. From the above code, replace 'popup' with '_blank' and it will always open in a new popup window. Searched forever to find the most basic solution:)
×
×
  • Create New...