I’m trying to output a Date field in a Channel Form, but the date picker isn’t working. It’s just giving me a text field. EE 3.3.2
<input type="text" name="entry_date" id="entry_date" value="{entry_date format="%n/%j/%Y"}" class="ee_datepicker text field" />
I have already included the Channel Form CSS include in the HTML Head
<link rel="stylesheet" type="text/css" href="{path='css/_ee_channel_form_css'}" media="screen">
So, I’ve just done a ‘little’ test. I have created the same Template on an EE 2.11.1 and on an EE 3.3.2 installation.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html >
<head>
<title>Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="{path='css/_ee_channel_form_css'}" media="screen" />
</head>
<body>
{exp:channel:entries channel="properties"}
{exp:channel:form channel="{channel_short_name}" entry_id="{entry_id}"}
<input type="text" name="entry_date" id="entry_date" value="{entry_date format="%n/%j/%Y"}" class="ee_datepicker text field" />
{/exp:channel:form}
{/exp:channel:entries}
</body>
</html>
EE2 = datepicker displays nicely. EE3 = datepicker doesn’t display, whether I use include_assets=”yes” or not.
Hey there, I have a similar issue going on with my site. I’ve followed all the suggestions here which seem to mostly resolve your issues but I’m still having issues with mine… I have a post on the “How do I” forums about this … would you be able to shed any light on what I may have wrong?
Glad to see your’s is working right.
Russ
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.