Is it possible to make the schedule fields mandatory / required ?

Comments

Eric-Alexander Schaefer’s picture

Why would you want to do that?

mjstone323’s picture

In my case - I am trying to get people who post jobs on our site to decide when their posting expires, instead of expecting me to unpublish it for them.

I am having a dickens of a time trying to figure out how to set a default "unpublish date", since the "unpublish" field isn't a CCK field, and therefore doesn't show up in Rules when I try to create a rule to make this happen. Requiring the Schedule fields in my form would be an acceptable alternative.

iancawthorne’s picture

I would like required fields as an option because I have a content type for job vacancies. All job vacancies are closed after a certain date and there a over 20 different admins who can submit job vacancies.

These 20 admins must be forced to enter a unpublish date so that the vacancies do not get left open to apply for after that date.

Eric-Alexander Schaefer’s picture

Category: support » feature
Status: Active » Postponed

OK, I understand. It can not be done now, but it could actually be useful. I will be looking into it when I get around it...

Eric-Alexander Schaefer’s picture

Status: Postponed » Fixed

http://drupal.org/cvs?commit=450260

Should be avalable through 6.x-1.x-dev in a couple of hours.

In the node type form is now a checkbox each for publishing and unpublishing to make either one (or both) required. The scheduler fieldset in the node edit form is never collapsed if at least one field is required.

iancawthorne’s picture

Thanks for adding this feature. Much appreciated.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.