I am using the following code to loop through a record-set and dynamically create a form with different form_element/cf_form fields. The form is able to build the dynamic cf_fields, email and submit data.
The problem I am having is with the the calendar. I only see the input field and not the calendar. So the dates are manually being entered.
Is it possible to have more than 1 datetimepicker instance?
As it stands, I am only able to display 1 cf_datetimepicker with input and calendar. Any ideas? -
The problem I am having is with the the calendar. I only see the input field and not the calendar. So the dates are manually being entered.
Is it possible to have more than 1 datetimepicker instance?
$i=1;
while (!empty($options['0'][$task]))
{
$cdate = "completedate_" . $i;
....
echo "<div class='form_item'><div align='center'><div class='form_element cf_datetimepicker'><input class='cf_datetime' title='' size='8' id='".$cdate."' name='".$cdate."' type='text' /></div><div class='cfclear'></div></div></div></td>";
$i++;
}
As it stands, I am only able to display 1 cf_datetimepicker with input and calendar. Any ideas? -