Re: [aev] Default Remove Date
Hi aev,
Try this:
- Open /cmsAdmin/lib/menus/default/edit_functins.php
- Make a backup copy of this file first.
- Then search for "get month options"
- add these lines above it (in red):
- be sure to change the fieldname 'removeDate' to the name of the date field you are using.
// set default time
$isNewRecord = @!$record{$fieldSchema['name']};
if ($isNewRecord && $fieldSchema['name'] == 'removeDate') {
$hour24 = '20';
$hour12 = '8';
$amOrPm = "PM";
$min = '00';
$sec = '00';
}
// get month options
Next, search for "get second options" and make the changes in red:
// get second options
$secOptions = '';
foreach (range(0,59) as $num) {
Let me know if that works for you.
Dave Edis - Senior Developer
interactivetools.com