Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Is it possible to make the schedule fields mandatory / required ?
Is it possible to make the schedule fields mandatory / required ?
Comments
Comment #1
Eric-Alexander Schaefer CreditAttribution: Eric-Alexander Schaefer commentedWhy would you want to do that?
Comment #2
mjstone323 CreditAttribution: mjstone323 commentedIn 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.
Comment #3
iancawthorne CreditAttribution: iancawthorne commentedI 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.
Comment #4
Eric-Alexander Schaefer CreditAttribution: Eric-Alexander Schaefer commentedOK, 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...
Comment #5
Eric-Alexander Schaefer CreditAttribution: Eric-Alexander Schaefer commentedhttp://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.
Comment #6
iancawthorne CreditAttribution: iancawthorne commentedThanks for adding this feature. Much appreciated.