zzounds Posted June 23, 2017 Report Share Posted June 23, 2017 Hi, would appreciate some help We have customers that ship packages, we would like for the results page tabular, to when a customer clicks on ship (which is a yes/no field) that it marks the current date (NOT the time) so then we can see which package he selected to be consolidated. Afterwards we can make another database where he can click on the dates and see what he requested to be consolidated. In essence clicking YES would put a date in the table. Thank you sooo very very much! Quote Link to comment Share on other sites More sharing options...
MayMusic Posted July 3, 2017 Report Share Posted July 3, 2017 What is the process? Is it adding new row to the table? Or you are updating the value of a row by checking the box? You can use the code below to get the date and assign it to a date field in a submission page <script> document.getElementById('caspioform').onsubmit = function (){ if (document.getElementById('InsertRecordYESNOFIELDNAME').checked){ document.getElementById('InsertRecordDATEFIELDNAME').value = '[@cbTimestamp*]'; } else { document.getElementById('InsertRecordDATEFIELDNAME').value = ''; } } </script> Replace DATEFIELDNAME and YESNOFIELDNAME with the actual field name. To use this code in an update/details page change InsertRecord to EditRecord 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.