The datepicker isn't working now Ray. If you attempt to change the date, it enters a very strange format into the field - dd-mm-yyyyyyyy?
Line 1813 in view_order.php is this:
<input type="text" class="form-control" name="DOB" id="datepicker_1" placeholder="Date of Birth" maxlength="10" value="<?php echo($rsEDITFORM->getColumnVal("SMCformDOB")?date("d-m-Y",strtotime($rsEDITFORM->getColumnVal("SMCformDOB"))):""); ?>" aria-describedby="basic-addon2" required<?php if($_SESSION['SMCinACCESSID'] > 1 && ($rsEDITFORM->getColumnVal("SMCorderSTATUSID") != "" && $rsEDITFORM->getColumnVal("SMCorderSTATUSID") < 4)) { ?> disabled<?php } ?>>
This form has validation running on it so my default value should actually be this, right?
<?php echo(isset($_GET['v1'])?ValidatedField("vieworder_201","SMCformDOB"):$rsEDITFORM->getColumnVal("SMCformDOB")?date("d-m-Y",strtotime($rsEDITFORM->getColumnVal("SMCformDOB"))):""); ?>
This DOB field, and data, has been very problematic on this project.
Hope you can help resolve it.
Thank you.
NJ
EDIT: Testing offline, I've changed the DOB field to:
<input type="text" class="form-control" name="DOB" id="datepicker_1" placeholder="Date of Birth" maxlength="10" value="<?php echo(isset($_GET['v1'])?ValidatedField("vieworder_201","SMCformDOB"):$rsEDITFORM->getColumnVal("SMCformDOB")?date("d-m-Y",strtotime($rsEDITFORM->getColumnVal("SMCformDOB"))):""); ?>" aria-describedby="basic-addon2" required<?php if($_SESSION['SMCinACCESSID'] > 1 && ($rsEDITFORM->getColumnVal("SMCorderSTATUSID") != "" && $rsEDITFORM->getColumnVal("SMCorderSTATUSID") < 4)) { ?> disabled<?php } ?>>
...but it has made no difference. :(