Jump to content

How do you timestamp when the checkbox is checked?


Recommended Posts

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>
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.

Guest
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.

Loading...
×
×
  • Create New...