Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
1.Is it possible to get the fields in to Conditional fields to maintain dependencies?
2. I have a "field collection" field which is unlimited values filed, containing "start date" and "end date" using date field
i wanted to achieve the following
a) Start date>end date- should give error (validation already existing)
b)Start date= end date -should give error (is not available)
c)since i wanted to have multiple "durations" -validation to prevent overlapping periods can any one help please?
Comments
Comment #1
KarenS CreditAttribution: KarenS commentedI have no clue what you are asking. I don't know what you mean by 'conditional fields', there is no such concept in the Date module. I can't tell what you are trying to do.
Comment #2
kaizerking CreditAttribution: kaizerking commentedwhen "start date" and "collect end date" are enabled, We have Value and value2 which are not available as fields in conditional fields,If i am using conditional fields to maintain dependencies,These two fields are not available as "fields"in dependent fields list, I wanted to have a check box field to declare period as "current", where "checked" would disable "end date" filed vice-verse.I am not able to do this. I am not sure whether this should be posted in conditional fields issues or here
Comment #3
KarenS CreditAttribution: KarenS commentedI don't have any idea how conditional fields works. You need to start there. Moving the issue.
Comment #4
kaizerking CreditAttribution: kaizerking commentedThanks
Comment #5
kaizerking CreditAttribution: kaizerking commentedComment #6
kaizerking CreditAttribution: kaizerking commentedIn the date module when we have collect end date enabled we have "Value" and "Value2" fields (delta). Can you please make the dependencies for these field (fields?)
Comment #7
giuvax CreditAttribution: giuvax commentedI have the same request since I need to enable a field just in the time range between start date and end date.
Comment #8
sprucemoose CreditAttribution: sprucemoose commentedIt sounds to me like the Rules module would be the best way to achieve this.
Comment #9
dqdStart and end date are just sub parts of the date field as a whole and can't be maintained by CF separately or somewhere in between. Therefor you need to change your setup by using to date fields (start,end).
Apart from that: Thanks for the report and all the efforts in here. But due to inactivity in this issue for some years and because of the upcoming EOL of Drupal 7, I will close this issue on the way by cleaning up the issue queue.
Feel free to re-open as "Needs review" if you found a solution or have a patch to be reported to help others on this outdated version.
If you think this issue or missing feature should be addressed in a newer Drupal core 8 and above compatible version of this project, then please file a new issue to the latest dev.
Comment #10
dqd