Jump to content

bmtadmin

Members
  • Content Count

    2
  • Joined

  • Last visited

  1. Any solutions for displaying photos in a slideshow format using tabular, details, gallery or list report datapages? Perhaps JS?
  2. New Caspio user and trying to create two javascript actions (concatenate & calculate) in a submission form datapage. I have the following fields in the form which I am trying to work with: 1: "Quantity" & "Measurement" | concatenate | "Qty_Plus_Measurement" ("Measurement" is a cascading dropdown) 2: "Quantity" & Unit_Price | calculate | "Total_Price" After testing, neither script is working...My footer script is below. <!-- Responsive Code Begin --> </div> <!-- Responsive Code End --> <SCRIPT LANGUAGE="JavaScript"> function concatenate() { var position1 = document.getElementById("InsertRecordQuantity").value; var position2 = document.getElemenstByName("InsertRecordMeasurement")[0]; var allpositions = position1 + position2; document.getElementById("InsertRecordQty_Plus_Measurement").value = allpositions; } document.getElementById("caspioform").onsubmit=concatenate; </SCRIPT> <SCRIPT LANGUAGE="JavaScript"> function calculate() { var v_price = parseFloat(document.getElementById("InsertRecordUnit_Price").value); var v_quantity = parseFloat(document.getElementById("InsertRecordQuantity").value); var v_total = (v_Unit_Price * v_Quantity); document.getElementById("InsertRecordTotal_Price").value = Math.round(v_total); } /* On submitting the webform, the function calculate is executed */ document.getElementById("caspioform").onsubmit=calculate; </SCRIPT>
×
×
  • Create New...