vdb@telenet.be Posted August 30, 2014 Report Share Posted August 30, 2014 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>> Quote Link to comment Share on other sites More sharing options...
Jan Posted September 1, 2014 Report Share Posted September 1, 2014 Hello Mel, Can the answer in the topic help? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.