I need START Time and an END Time on a form. I was using the Separate Input Fields for Date/Time Parts steps. Works well but only once.
But I need to do it twice. I need to use it once for a Start Time field and an End Time field.
When I enter the script twice in footer (once for a start time section, once for an end time section) it doesnt work anymore. Also tried combining them but no luck.
<script>
document.getElementsByName('Submit')[0].onmouseover =function(){<script>var date = document.getElementById('cbParamVirtual1').value;if(date ==""){ date ="1/1/2011";}var hour = document.getElementById('cbParamVirtual2').value;if(hour ==""){ hour="00";}var minute = document.getElementById('cbParamVirtual3').value;if(minute ==""){ minute ="00";}document.getElementById('InsertRecordTIME1').value = date +" "+ hour +":"+ minute;};</script>
Any way to run this twice. Or a better way to get a Start Time and End Time fields using time values so they can be subtracted as time between intervals later?
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.
Question
roattw
I need START Time and an END Time on a form. I was using the Separate Input Fields for Date/Time Parts steps. Works well but only once.
But I need to do it twice. I need to use it once for a Start Time field and an End Time field.
When I enter the script twice in footer (once for a start time section, once for an end time section) it doesnt work anymore. Also tried combining them but no luck.
Any way to run this twice. Or a better way to get a Start Time and End Time fields using time values so they can be subtracted as time between intervals later?
Link to comment
Share on other sites
3 answers to this question
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.