wvantongeren Posted August 19, 2016 Report Share Posted August 19, 2016 When the checkbox "Aanwezig" is Y, then i like to fill the parameter "AanwezigDD" withe the [@cbTimestamp] Quote Link to comment Share on other sites More sharing options...
MayMusic Posted August 20, 2016 Report Share Posted August 20, 2016 You need to have a date/time field to store the date and the code below <script> var chk= document.getElementById("CheckboxID"); document.getElementById('caspioform').onsubmit = function(){ if (chk.checked){ document.getElementById('Date Field ID').value = "[@cbTimeStamp]"; } else { document.getElementById('Date Field ID').value = ""; } } </script> 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.