Caspio Evangelist
  • Content count

  • Joined

  • Last visited

  • Days Won


MayMusic last won the day on January 14

MayMusic had the most liked content!


About MayMusic

  • Rank
    Advanced Member
  • Birthday May 19

Profile Information

  • Gender
  1. Add the code below to the Footer of the page replace InsertRecordZip with ID of your zipcode field: InsertRecordFIELDNAME <SCRIPT LANGUAGE="JavaScript"> function zip() { var zipcode = document.getElementById("InsertRecordZip").value; // here you get what the end-user typed if (zipcode != "") { document.getElementById("InsertRecordZip").value = (zipcode.replace(/[^\d]/g, '')); // then you strip off all the spaces var zipcode1 = document.getElementById("InsertRecordZip").value; document.getElementById("InsertRecordZip").value = zipcode1.substring(0,5) + "-" + zipcode1.substring(5,10); } } document.getElementById("InsertRecordZip").onchange=zip; </SCRIPT>
  2. Insert the code below in the Footer of the page in source tab and replace the IDs on this line to your listbox IDs: Array("InsertRecordState", "InsertRecordCity"); <SCRIPT LANGUAGE="JavaScript"> var o_els = new Array("InsertRecordState", "InsertRecordCity"); for (var i = 0; i < o_els.length; i++) { document.getElementsByName(o_els[i])[0].multiple=true; } </SCRIPT>
  3. Do you want to save this info? If you want to save them then you need to have cascading element. If it is for showing purposes you can create a per-defined details page and instead of selecting the account on the same page search for it and see the details and add the submission page where you have deployed details page.
  4. I am not sure why you are having virtual 4 as cascading element but there is a syntax error on your code in this line: document.getElementByName("cpParamVirtual4")[0].value=p2; which should be document.getElementsByName("cpParamVirtual4")[0].value=p2;
  5. This should be what you are looking for: <SCRIPT LANGUAGE="JavaScript"> function con1() { var v2 = document.getElementById("InsertRecordVirtual2").value; if (v2 !="Don't Share") { document.getElementById("InsertRecordCON_1").value = v2; } } document.getElementById("caspioform").onsubmit=con1; </SCRIPT>
  6. try to remove the value of the text field before assigning new value function modify() { //Store the value in the field to trim. var trim = document.getElementsByName("InsertRecordBarcode")[0].value; //Take a substring of trim and store it back into new trim value. trim = trim.match("%2(.*)%"); //Set the value of the weight field in the form to the new substring document.getElementsByName("InsertRecordBarcode")[0].value = ""; document.getElementsByName("InsertRecordBarcode")[0].value = trim; //the new value in the field is what is submitted. }
  7. You need to give your page a new ID by adding div to header and closing it in Footer: Header: <div id="mypage"> Footer: </div> and then in the line where you have $('#caspioform').signaturePad({drawOnly : true}); Replace caspioform with "mypage" $('#mypage').signaturePad({drawOnly : true});
  8. Download button is downloading whatever user retrieved on report page, there is no point to move it to search. If you have search and report on one page and you want to see download over on search page then "position:absolute" might help.
  9. You can fire the function on a different event like when the second value goalcount is entered and focus goes to another field <script> function onSubmitClick() { var box1 = document.getElementById('InsertRecordsubgoalcount'); var box2 = document.getElementById('InsertRecordgoalcount'); box2.value = box1.value; } document.getElementById('InsertRecordgoalcount').onblur = onSubmitClick; </script>
  10. For the many to many you have to break it down to two one to many relations so you need to have an extra submission page to add to this join table. As for the Grid, if possible give me the URL to take a look. Probably you need to check and see if you have a fixed width for some columns in your report
  11. How do you get these values to the table? what is the table design? Calculation needs to be performed at submission is that correct?
  12. can you bring an example of the table setting?
  13. Regarding your third question what is the relationship between company and employee table? which one of the following: 1 Employee ==> Many Company Many Employee ==> 1 Company Many Employee ==> Many Company
  14. 1) How Can I Change the Default "View Details" link to just "Details"? A: Edit the localization you are using for this page, under Results Pages >> Record Actions >> Element find view details and change the custom text 2) Grid Edit - How Can I Make the tables NOT shrink and get squishy when I Click "Grid Edit" : A: Add Header to "Configure Result Page Fields" screen and use the code below: <style> .cbGridCtnr, .BodyCtnr, .Table { width: 100% !important; } </style>
  15. This will change the whole cell background color <div id="visi[@field:ID]"></div> <script> var isi = document.getElementById("visi[@field:ID]"); if('[@field:Name]' == 'A'){ = '#b3e6b3'; }else if('[@field:Name]' == 'B'){ = 'red'; } else if('[@field:Name]' == 'D'){ = 'yellow'; } </script>