I am trying to: Input a date within a CRED form
Link to a page where the issue can be seen: hidden link (needs to be logged in)
I expected to see: a datepicker poping up
Instead, I got: a bland line
I am using Enfold but the problem still occurs with Twenty Seventeen and all non Toolset/wpml plugins disabled.
A similar CRED form is used for editing existing post via a popup window and there the datepicker works flawlessly.
Hi, I believe you have an HTML problem in your CRED form contents. Please see the attached screenshot, showing the DOM used to display your CRED form. The CRED form tag doesn't include the datepicker input field - the datepicker occurs after the form tag closes. It may be related to this code I see in the contents of your form:
[credform class='cred-form cred-keep-original']
[cred_field field='form_messages' value='' class='alert alert-warning']
[cred_field field='form_submit' value='Submit' urlparam='']<br/>
<label class="cred-label"><h3>[wpml-string context='cred-form-New Auction listing ML-1279' name='Référence CDC']Référence CDC[/wpml-string]</h3></label>
[cred_field field='reference-cdc' post='auction-listing' value='' urlparam='' class='form-control' output='bootstrap']
</div>
See that last closing div tag? It doesn't have a matching opening div tag inside the CRED form. I think it's the real problem here, because it's closing out some div from before the CRED form, before the form tag should end. Try removing it and let me know the results.
Hello Christian,
Indeed! How could I have missed this :/
Thank you very much for your efficient help.