T
|
thesofa 12/22/2008 |
something along the lines of an before record saved event will do it, so if ($values["Invoice_Printed"]!=$oldvalues["Invoice_Printed"]) |
S
|
swanside author 12/22/2008 |
That works if I put it the events before record updated, but I really wanted it to happen on the fly, so as soon as the checkbox is ticked, the script will put in the date before the save button is pressed. |
T
|
thesofa 12/22/2008 |
sorry mate, I have no idea how to do that, have you tried looking for javascript or ajax snippets on the web? |
S
|
swanside author 12/22/2008 |
Not yet, but will look later, got to take the wife christmas shopping now. No time to play. |
J
|
Jane 12/22/2008 |
Hi, |
S
|
swanside author 12/22/2008 |
Thanks Jane <script>
|
S
|
swanside author 12/24/2008 |
I have tried this as well <script>
|
J
|
Jane 12/24/2008 |
Hi, var d=new Date(); document.forms.editform.value_Invoice_Printing_Date.value=""+d.getDate()+"/"+(d.getMonth()+1)+"/"+d.getFullYear(); |
S
|
swanside author 12/24/2008 |
Thanks Jane. <script>
|
J
|
Jane 12/24/2008 |
It's difficult to tell you what's happening without seeing actual files. |