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

CommentFileSizeAuthor
#1 screenshot.png16.15 KBcarsonw

Comments

GreenLanterrn’s picture

Issue summary: View changes

Added a screenshot

carsonw’s picture

Status: Active » Closed (fixed)
StatusFileSize
new16.15 KB

To have the end date be unchecked by default, remove the default value for the end date:

Screenshot

carsonw’s picture

Issue summary: View changes

Added a screenshot

criscom’s picture

Version: 7.x-2.6 » 7.x-2.8
Issue summary: View changes
Status: Closed (fixed) » Active

In version 7.x-2.8 I cannot set the default end date.

lenoz’s picture

Go 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.

nwom’s picture

Status: Active » Closed (works as designed)

Solution as per #3.