commish Posted August 8, 2010 Report Share Posted August 8, 2010 To make the script below usable on a datapage that allows updates to a record, is it as simple as changing InsertRecord to EditRecord? Or does something esle need to change? Thanks, Rick function calculate() { /* Retrieve the value of the field Height and store in a variable 'v_height' */ var v_height = parseFloat(document.getElementById("InsertRecordHeight").value); /* Retrieve the value of the field Width and store in a variable 'v_width' */ var v_width = parseFloat(document.getElementById("InsertRecordWidth").value); /* Multiply the value height and width to obtain the value of 'v_area' */ var v_area= (v_height * v_width); /* Insert a rounded value of the variable 'v_height' into the DataPage field Area */ document.getElementById("InsertRecordArea").value = Math.round(v_area); } /* On submitting the webform, the function calculate is executed */ document.getElementById("caspioform").onsubmit=calculate; Quote Link to comment Share on other sites More sharing options...
Barbara Posted August 9, 2010 Report Share Posted August 9, 2010 Hi Rick, It is as simple as changing InsertRecord to EditRecord. Try it out and it should work. Cheers, Barbara 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.