Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by braxwell

  1. Hello all, Im using the following code to combine the values of several fields to create a parent value for a cascading element. My problem is the cascading elect won't update unless I actually type in the parent field - how can I force the cascade to update? <script> document.getElementsByName("InsertRecordFrame_Desc")[0].onchange = function () {{ var box80 = document.getElementsByName("InsertRecordFrame_Collection")[0]; var box81 = document.getElementsByName("InsertRecordLens_Package")[0]; var box82 = document.getElementsByName("InsertRecordInsuranceLevel")[0]; var box83 = document.getElementsByName("InsertRecordInsuranceDet")[0]; box83.value = box82.value + box80.value + box81.value; }} </script>
  2. Thanks - I was able yo get it to work with this: <style> input[id^="Mod0EditRecord"]{ display: none !important; } </style>
  3. Hello I need to have a details page on and update form that has no action buttons at the bottom. I was able to hide the BACK button with the following code: <style> input[id^="Mod0CancelRecord"]{ display: none !important; } </style> I also need to hide the UPDATE button as well - I have not be successful modifying the above code to accomplish this. Can anyone help? Thanks!!!
  4. Hello Caspio Friends, Im wondering if this is possible. I have a submission page that uses a dropdown. The dropdown is set to have a value for Display, and and Actual Value. I now would like on a reports page to place code inside an html block to display the value in that field. The rub is I want to to show the Display Value, not the Actual Value. Is there a way I can do this? Thanks in advance.
  5. Its a reports page - I tried the code you referenced above but it doesn't seem to work. What adjustments are needed for a update/reports page?
  6. Hi - I have a reports page that I need to add a simple script to that will look at the values of two fields - and if those values are equal - will display a message and prevent submission. I think and If then statement would work but i'm not able to write it myself. Can anyone help with that script? Thanks!
  7. did you ever figure this one out - I am having the same issue?
  8. I have an update form that calculates some vales based upon user selections. I use html to do the calculations - but I need to make some of the filed non-editable after the calculations are make. - I have tried using the document.getElementById('EditRecordField_Name').disabled= true; tag - which works to disable the field, however upon updating the record - the values do not save. Is there a way to allow the value to be populated by the code, but not allow a user to edit the field?
  9. Ok - I understand - Ill give this a try - Thank You~!
  10. Hello Im using the following code: <script> document.getElementById('InsertRecordVisit_Type').onchange = function () {{ var currentdate = new Date(); var datetime = (currentdate.getMonth()+1) + "/" + currentdate.getDate() + "/" + currentdate.getFullYear() + " " ; document.getElementById('InsertRecordDate').value = datetime; document.getElementById('InsertRecordAccessory_1').value = "Cord"; }} </script> All is working fine except I cannot get the Accessory_1 value to change - this is a dropdown field that is the parent field for and autocomplete field. what do I need to add to get the parent field to accept the instructions ? Thanks!!!
  11. Hello, Here is the situation, I need to be able to use html to create a button on a form that will direct the system to generate an email, - that part I have figured out - the hard part is that I need to be able to take data from the Caspio form - and using that data generate a text file that is attached to the email being sent. The content of the text file will be simple instructions populated by the data retrieved in the lookup form. Ive not had much luck finding anything on how to do this - can anyone help?
  12. This is the code i have in place - it works great as long as the input fields are text fields - when they become cascading dropdowns it no longer works. Please help!!! <SCRIPT LANGUAGE="JavaScript"> function calculate() { var v_field1 = parseFloat(document.getElementById("InsertRecordOD_PD").value); if (isNaN(v_field1)) v_field1 = 0; var v_field2 = parseFloat(document.getElementById("InsertRecordOS_PD").value); if (isNaN(v_field2)) v_field2 = 0; var v_field3 = parseFloat(document.getElementById("InsertRecordOD_SEG").value); if (isNaN(v_field3)) v_field3 = 0; var v_total = (v_field1 + v_field2+v_field3); document.getElementById("InsertRecordTOTAL_SALE").value = (v_total); } /* On submitting the webform, the function calculate is executed */ document.getElementById("caspioform").onchange=calculate; </SCRIPT>
  13. Hello Caspio Nation, I have a submission form - the form has 2 fields that are populated by a cascading dropdown and contain a price. Id like to put a total field on the submission form so i need a simplethe html code to add these two fields together. The cascading dropdown seems to be the issue - can anyone please help?
  14. Id like a html code that will subtract the values of two fields in an update data page. I need the calculation to happen instantly so calculated fields don't work. Thanks!!!
  15. Thanks - I had looked this post previously - its where i got the code for the print button - this isn't quite what I'm looking for. Is there a way to have the print area of the document not include the header/footer - i.e. the web address , nav buttons, ect - I just want to print out the main body of the document. Thanks!
  16. OK success - i had to change InsertRecord to EditRecord and that did the trick. Thanks !!!!!!
  17. Its a field in a reports data page. I'm not having any luck getting this to work.
  18. How would I change this code to pull data from an existing data field and place that value in another field? script> function onSubmitClick() { var box1 = document.getElementById('box1'); var box2 = document.getElementById('box2'); box2.value = box1.value; } </script> <textarea id='box1'></textarea> <textarea id='box2'></textarea> <button onclick='onSubmitClick(); return false'>Click Me</button>
  19. Please Help!!!! I need to insert a button into a form that when clicked will copy data from one field to another field in the same form. Here is what I have: <script> function onSubmitClick() { "SUB_OD_CYL" = "SUB_OD_SPH" } </script><button onclick="onSubmitClick(); return false">Click Me</button> The field names are : SUB_OD_SPH I want to copy the value entered into this field and place the same value in the field - SUB_OD_CYL I'm sure I'm missing things in the script but I cannot find any clear direction - please help!!!
  20. Hello Folks, I have the code to add a print button - but what wish to print it just a little too big for one page - is there a way to add instruction in the code to have the page resize to fit on one page?
  21. Hello - Im new to this and trying to learn. Id like to create a submission for that has a total field. the total field needs to be the sum of selections from the same record. Like an invoice - totaling up the prices of items selected. Im not sure how to do this - i don't think i can use the calculated field option - can it be done in html? Thanks!!!
  • Create New...