10808 Posts in 2494 Topics by 1782 members
|Go to End|
30 November 2010 at 3:06pm
i have one user defined form which is on a hidden page called "form-2"
then in my page.php i have a function that calls that form.
then on the main page.ss i have a control that makes makes the form appear on every page.
problem is, the date picker only works on the ACTUAL "form-2" URL page.
any idea why this is??
the only thing i can think of is a missing script not being called on the other pages?
thanks in advance.
P.S - you can see it working here:
and not working on any other page!
1 December 2010 at 12:47am
can anybody help with this??
it looks like the scripts loaded on the "form-2" page are different to all the other pages.
so im guessing the way im including the userdefinedform on every page doesnt work well with the datepicker.
im considering using an iframe at this rate! (what have i become)
any suggestions please??
1 December 2010 at 12:50am Last edited: 1 December 2010 12:51am
P.S - heres how im including the form at the moment:
$get = DataObject::get_one('SiteTree', "URLSegment = 'form-2'");
return new UserDefinedForm_Controller($get);
<% control ShowForm %>
<% end_control %>
|Go to Top|