zalipresents

Caspio Ninja
  • Content count

    27
  • Joined

  • Last visited

About zalipresents

  • Rank
    Member

Profile Information

  • Gender
    Not Telling
  1. Listbox Auto Height

    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.
  2. Hide section in list report

    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.
  3. Hide section in list report

    May Music, Works great on a list, how do I get this same function to work on a calendar datapage?
  4. Hide section in list report

    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?
  5. Listbox Auto Height

    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.
  6. 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"
  7. 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>
  8. passing parameters to 2 tables

    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?
  9. 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?
  10. Selecting More Than One Radio Button

    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.
  11. Selecting More Than One Radio Button

    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!
  12. Adjusting Layout

    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.
  13. 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>
  14. Onclick Popup Window

    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:)
  15. Disable Submit Button Based On 2 Values Being Different

    Awesome, this will help a ton. what if i wanted to recreate the formula that the HTML block is doing, how would I enter that? Here is a summary example: Field_A value 50 Field_B value 50 Field_C value 100 submit requirement: need Field_A + Field_B to equal Field_C in order for the button to be enabled make sense? I'm just trying to see if a formula can be used in the javascript since an HTML block can't be...another option is I can have a duplicate field and tell the HTML block to display the result in that as well as the HTML block, however i'd rather not add anymore fields to my table unless 100% necessary. Also i'll put all this in the footer right? Thanks!