Jump to content


  • Posts

  • Joined

  • Last visited

vdb@telenet.be's Achievements


Newbie (1/14)



  1. I tested this with checkbox and radiobuttons, did not work. Only List and dropdown give the info... Finaly i worked with this to add up 1 to the existing amount: <script language="JavaScript"> function concatenate() { var position1 = parseInt(document.getElementById("cbParamVirtual1").value); var position2 = parseInt(document.getElementById("EditRecordR393_Kip_met_Marrokaanse_kruiden").value); var allpositions = position1 + position2; document.getElementById("EditRecordR393_Kip_met_Marrokaanse_kruiden").value=allpositions; } document.getElementById("caspioform").onsubmit=concatenate; </SCRIPT> many thanx! Mel
  2. yes, thank you for all the answers! Mel
  3. Normally this procedure must work in the footer of a update datapage form, so when the virtual1 checkbox is checked, then add +1 to the total of field... The procedure to add +1 to the fields total is working... When adding the If-Then procedure it stops adding, with or without the checkbox checked.... If anybody can help me with this? Thanx <SCRIPT LANGUAGE="JavaScript"> // ParsInt script is tested en working (adding each time +1 to value Kip_met_Marokkaanse_kruiden) function add() { var totalVal = parseInt((document.getElementById("EditRecordR393_Kip_met_Marrokaanse_kruiden").value)) + (+1); document.getElementById("EditRecordR393_Kip_met_Marrokaanse_kruiden").value=totalVal; } function is_checked_and_change() { var is_checked = document.getElementById("cbParamVirtual1").checked; if (is_checked) { document.getElementById("caspioform").onsubmit=add; } } </SCRIPT>>
  4. hi GoCubbies, thank you for the advice. I tested all, but still not add +1 when the checkbox is checked. The code for adding +1 to another field is working, but it is like the if-then code is not detecting anything? I am searching this for 2 days already. Maybe you can see other faults? thanx, Bart Belgium the updated code: <SCRIPT LANGUAGE="JavaScript"> function add() { var totalVal = parseInt((document.getElementById ("EditRecordR393_Kip_met_Marrokaanse_kruiden").value;)) + (+1) document.getElementById ("EditRecordR393_Kip_met_Marrokaanse_kruiden").value; =totalVal; } function is_checked_and_change() { var is_checked = document.getElementById("cbParamVirtual1").checked; if (is_checked) { document.getElementById("caspioform").onsubmit=add; } } </SCRIPT>>
  5. I can add numbers now, but i can not do the 'if then' check.. When Virtual1 is "Y" then add +1 to Fieldxx Thank you if you could help me out.. Bart <SCRIPT LANGUAGE="JavaScript"> function add() { var totalVal = parseInt((document.getElementById("EditRecordR393_Kip_met_Marrokaanse_kruiden").value)) + (+1) document.getElementById("EditRecordR393_Kip_met_Marrokaanse_kruiden").value =totalVal; } if (document.getElementById("@cbParamVirtual1").value == "Y") { document.getElementById("caspioform").onsubmit=add; } </SCRIPT>>
  6. I found already this, but it concatenate instead of addition... Can anybody make this script work? <SCRIPT LANGUAGE="JavaScript"> function add() { var position1 =document.getElementById("EditRecordR397_Gegrilde_eend_sappig").value; var position2 = 1 var allpositions = position1 + position2; document.getElementById("EditRecordR393_Kip_met_Marrokaanse_kruiden").value =allpositions; } document.getElementById("caspioform").onsubmit=add; </SCRIPT>>
  7. For example a 'check' field... ik cannot do [@example]=[@example]+1 when checked Someone can help me out? thanx Bart
  8. Problem: Several people submit there ingrediënts preference from a list(dropdown) with a submit datapage. I want to make a report that lists this in order of most choosen ingrediënt first. Somebody has experience with such poll reports? See my graphical example within this message. Thank you, Bart
  9. Problem: under Tabular format there is no 'hide on blank value" I can only work under Tabular because of the agregation function (sum). Report -> tabular -> Results page fields So hide the colums(fields) where the value is blank Can someone help me please? Thank you Bart
  10. With for example google Icloud you can print from a webpage to a internet connected printer. In fact it reload's the page in the background and send it to you virtual printserver installed for example on a Windows PC. But when it is a password protected Caspio datapage, it only print the password screen. Is there a solutions for this or another software tool on the market? Thanx Bart
  11. Trough webservices or XML or Schema? Thanx if you have a litle example! Bart
  12. I want to copy the company address to the deliveryaddress in a form(datapage).. For example this script in a html block at the end of the form.. document.getElementById("authfield:CompanyZipCode").name = CompanyZip; document.getElementById("EditRecordDeliveryAddressZipCode").name = CompanyZip; thanx for info Bart
  13. Based on the user date input -> goto to different webpage.. for example.. If date is less then 3 days from now goto page A If date is more then 3 days goto page B If someone can help me out to do this (javascript?) thank you. Bart
  14. For a reason i have to slow down for short time (1 sec or so, have to test) the loading of a datapage in the webbrowser... (so just updated data(recordaction: delete) is captured, now it is not in time refreshed)... Can someone show me how todo it below? Deploy code: Click here to load this Caspio Online Database app. thanx! Bart ps.: (i think the refresh problem has todo with the calculated field, because normal resultdatapages refresh ontime)
  • Create New...