Jump to content

Select yes, means a date is recorded.

Recommended Posts

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!

Link to comment
Share on other sites

  • 2 weeks later...

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



document.getElementById('caspioform').onsubmit = function (){
if (document.getElementById('InsertRecordYESNOFIELDNAME').checked){

document.getElementById('InsertRecordDATEFIELDNAME').value = '[@cbTimestamp*]';
} else {
document.getElementById('InsertRecordDATEFIELDNAME').value = '';

 Replace DATEFIELDNAME and YESNOFIELDNAME with the actual field name.


To use this code in an update/details page change InsertRecord to EditRecord


Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...