Date time picker & PHP require

NickOg 20 May, 2012
Hi,

To simplify coding I use <php require ('some file name'); ?> to replace the wizard code in a form. I copy the prepared wizard code into an external file and use that as 'some file name'. My problem is that date picker fields and time picker fields no longer activate the calendar or clock when included via that PHP code. Now why is that? There is an easy solution of course - copy and paste the code back into the form manager. But there must some reason for the problem. Any ideas?


Nick.
GreyHead 20 May, 2012
Hi Nick,

I think that you could either use a Custom Datepicker action; or you could try adding a comment in the box you use to include the code:
<!-- cf_date_picker -->
I think that will fool the Show HTML action into thinking that there is a DatePicker in the form.

Bob
NickOg 20 May, 2012
Unfortunately your simple solution didn't solve it. Pity. I will try your other suggestion.

Thanks Bob
NickOg 20 May, 2012
And that seems to be the go! Adding the Custom Datepicker works just fine.

Thanks again.

Nick
This topic is locked and no more replies can be posted.