Bangalore Posted March 8, 2012 Report Share Posted March 8, 2012 Hello, If I have a checkbok in my Datapage, how do you timestamp when the checkbox is checked? Quote Link to comment Share on other sites More sharing options...
HongTaiLang Posted March 8, 2012 Report Share Posted March 8, 2012 If you want to add a value of timestamp into the Value when checked field in a Submission form, please make sure the data type is Text Field in the table. Then go to Configure Fields screen and select Checkbox from the Form element dropdown field. Insert following code into the Footer.(Please replace "InsertRecordFileName" to your field id name). <SCRIPT LANGUAGE="JavaScript"> function setTime(){ var v_chk=document.getElementById('InsertRecordFileName').checked; if(v_chk==true) { document.getElementById("InsertRecordFileName").value="[@cbTimestamp]"; } } document.getElementById("caspioform").onsubmit=setTime; </SCRIPT> Quote Link to comment Share on other sites More sharing options...
Bangalore Posted March 9, 2012 Author Report Share Posted March 9, 2012 Thank you for the prompt reply 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.