nestorwagner Posted January 28, 2013 Report Share Posted January 28, 2013 Could anyone help with the code below. I cannot get it to work. Thank you!! Fields: Access_In; Access_Out, Time_Difference Goal: Input Access_In and Access_Out -- Code inserts time difference in Time_Difference Field DataPage Type: Submission Form, Code placed in Footer Code: get.ElementsByID('InsertRecordTime_Difference').value=Datediff(minute,[@field:Access_In],[@field:Access_Out]) Quote Link to comment Share on other sites More sharing options...
MayMusic Posted January 31, 2013 Report Share Posted January 31, 2013 I found this script online: http://stackoverflow.com/questions/10804042/calculate-time-difference-with-javascript Quote Link to comment Share on other sites More sharing options...
cheonsa Posted October 2, 2018 Report Share Posted October 2, 2018 Hi, Caspio has released version 13.0 last July 2018. You can now perform a calculation in Submission Form without inserting custom js code. Here are the links. You can check this out! https://howto.caspio.com/release-notes/caspio-bridge-13-0/ https://howto.caspio.com/datapages/datapage-components/calculated-values/ Regards, kristina 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.