I am working on an event content type.
It contains a date field that lets users input the date in which their event will take place.
But sometimes the date of the event isn't known at the time the node is created. Users just need to create the event and discuss with other users (in the comments section) then decide when to organize it and add the date then.
So the date field has no default value and I created another boolean field that controls whether the date field is displayed or not using the conditional fields module.
The boolean field has two values, TRUE = « I know the date of my event ».
FALSE = « I will pick a date later »
The field is set to TRUE « I know the date of my event » by default.
If the user picks False « I don't know the date of my event yet », then the date field is hidden and no value is input.
The problems i'm facing are : When displaying the event as a node and when listing all the events in a view :
If the user knows and inputs the date of the event :
- How to only display the date and hide the TRUE/I know the date of my event label/value of the boolean field
If the user chooses to pick a date later :
- How to display a « Date to Be Determined » message and hide the empty date field.
If you have ideas or a better way to handle this, you're welcome