Hello,
Instead of being checked by default, I'm looking for a way to have the Show end date checkbox be unchecked by default.
I think it is better to present less fields to the user. The end date won't always be used, so it would be better to only display it to the user that need it and who will then just check the box to see the end date input fields.
i tried this jQuery hack, the checkbox is unticked but the end date field is still there, so i'm assuming this is deeper in the date module.
$('#element-id').is(':checked');
$('#element-id').removeAttr('checked');
Screenshot
Any ideas are welcome
Comments
Comment #0.0
GreenLanterrn commentedAdded a screenshot
Comment #1
carsonwTo have the end date be unchecked by default, remove the default value for the end date:
Comment #1.0
carsonwAdded a screenshot
Comment #2
criscomIn version 7.x-2.8 I cannot set the default end date.
Comment #3
lenoz commentedGo to your content type, click edit on the field.
You will find the Default Values section inside the More settings and values section.
You'll have to expand the parent section before you can see the Default Values bit.
Comment #4
nwom commentedSolution as per #3.