[rt-users] CF dependencies? Hide some CFs unless another CF has a certain value?

Ruslan Zakirov ruz at bestpractical.com
Tue Mar 27 17:52:24 EDT 2012


On Wed, Mar 28, 2012 at 01:34, Jeff Blaine <jblaine at kickflop.net> wrote:
> On 3/27/2012 5:05 PM, Ruslan Zakirov wrote:
>>>
>>> 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...">

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.



More information about the rt-users mailing list