When I use Date as a dependant field, for example

DEPENDENT DEPENDEE
field_starting_date field_starting_date_description field_starting_date is invisible when field_starting_date_description has value "Textual description".

and if I select the "Textual description" checkbox, it doesn't go invisible. I also tried disable but that doesn't work either. As a matter of fact, no matter what I try, the Date field won't go away.

I know that theres an issue:

Supported dependee fields are for now only core fields (D7) or CCK widgets (D6). That is: select, checkbox, radio and text. Other field types might work but are not supported.

But apparantly this isn't only for dependee fields but also dependent fields?

Comments

Barry1337’s picture

Anyone who can confirm this? Or am I just doing something wrong?

chalee’s picture

I have the same issue too.

armakan’s picture

Same issue here, it seems like its just a text field with javascript applied, so I don't see why this shouldn't work.

AtomicTangerine’s picture

Obviously this issue is more specific, but I thought I would post a related link for people: http://drupal.org/node/648934 <-- this hasn't had activity for a while, and I agree, Date is pretty darn important, I know I've had to redesign some stuff because date fields don't work, but it's still another module, and this plugin system from my link would save overall time, rather than peterpoe and the community having to make a specialized effort for every module out there that makes a field type :)

AtomicTangerine’s picture

Category: bug » support
peterpoe’s picture

Status: Active » Fixed

Just committed some improvements to Date support. Date text now work, and there are other small fixes as well.

mstrelan’s picture

How about date_popup?

AtomicTangerine’s picture

@mstrelan: the popup calendar widget/form element doesn't work as a dependent field, at least with my testing, but the Select List option does work, even if the widget isn't as pretty as that nice popup calendar.

mstrelan’s picture

I know, I was more requesting that this be included in the scope of this issue.

AtomicTangerine’s picture

@mstrelan: My apologies! I realize now that my tone comes off as kind of rude, sorry :(
I'm new to being in the Drupal community, so I don't know if that would continue under this issue, because technically Date works... just not all of its widgets :( I would also really like to use that nice date_popup with conditional fields too, but lack the coding skills to do it.
@whoever: I'm more than willing to test :)

peterpoe’s picture

Just added support for date popup widgets in dev.

mstrelan’s picture

Thanks peterpoe, this works great! My client will be very happy.

mstrelan’s picture

Status: Fixed » Needs work

I changed my mind, this is not working properly. I have a taxonomy term select list as the dependee and a date_popup field as a dependent. The select list has 3 values. The rule is field_exhibition_dates is visible when field_exhibition_type has value "exhibition". When I load up the node add form the date fields are shown because the default value is 'exhibition'. When I change it to something else, nothing happens the first time. I then change it once again and it works. Changing back to exhibition does not re-draw the date fields. I have to toggle between values in the select list a few times before I can get the date fields back.

mstrelan’s picture

Status: Needs work » Fixed

This works now with Date 7.x-2.0-alpha4 and Conditional Fields 7.x-3.x-dev (2011-Aug-24).

laroccadahouse’s picture

using the sept 2 dev release.

I want the date field to display if the user selects any value from the list but NONE. If I add one value to the values box, it works. If I add multiple values, it doesn't. I tried using the "filled" and "empty" conditions but the date field always shows. for those.

I also have a text field that is dependent on the select list. That field is not showing for multiple values either.

Status: Fixed » Closed (fixed)

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

BenK’s picture

Subscribing