CF dependencies? Hide some CFs unless another CF has a certain value?

Before I dive into this any further than my current
implementation already is, I figured I’d ask:

Is there any way to hide and show CFs depending on
the value of another CF?

We only want an additional list of CFs shown if a
certain CF (the “control” CF) has a certain value.

if CF “foo” has value "YES"
Show CF X, Y, and Z
else
Do not show CF X, Y, and Z

Before I dive into this any further than my current
implementation already is, I figured I’d ask:

Is there any way to hide and show CFs depending on
the value of another CF?

We only want an additional list of CFs shown if a
certain CF (the “control” CF) has a certain value.

if CF “foo” has value "YES"
Show CF X, Y, and Z
else
Do not show CF X, Y, and Z

Use custom java script for that.

Best regards, Ruslan.

if CF “foo” has value "YES"
Show CF X, Y, and Z
else
Do not show CF X, Y, and Z

Use custom java script for that.

That would be nice.

I’m not sure how one would go about that given that the
CF table row ids are sequentially named on the "Display.html"
page:

 <tr id="CF-1-ShowRow">

I can’t target that.

I see the right thing was done on the edit pages, however…

 <td class="cfname-myfield ...other classes...">

if CF “foo” has value "YES"
Show CF X, Y, and Z
else
Do not show CF X, Y, and Z

Use custom java script for that.

That would be nice.

I’m not sure how one would go about that given that the
CF table row ids are sequentially named on the "Display.html"
page:

I can’t target that.

I see the right thing was done on the edit pages, however…

Nothing stops you from content checking with JS. Also, it wouldn’t be
bad for RT core to mark html better with class, name or id, so we
probably accept a sane patch.

Best regards, Ruslan.