Hi,

I have a question regarding the Dynamic Fields Plugin:
https://trac-hacks.org/wiki/DynamicFieldsPlugin#Configuration

Not sure if I'm understanding how it works correctly. We're trying to have
the 'New ticket' page show or hide two fields depending on the 'component'.
Much as in the configuration examples, but for components.

However I cannot get this right. 1) I can get fields to be *hidden *in the
'New ticket' page. 2) But I cannot get them to appear. I was expecting some
AJAX update on the same New ticket page, eg. if I change the component from
a dropdown menu and it matches the rule in '[ticket custom]' then I  expect
a change on the ticket form itself, before I 'Create' or Preview and submit
the ticket.

Examples work for 'show_when_type' and 'show_when_priority' but they don't
work for 'show_when_component', as if this option were not implemented in
the plugin. Maybe related to this closed ticket:
https://trac-hacks.org/ticket/11186

*Example:*

[ticket-custom]
effort = select
effort.options = low|medium|high
effort.show_when_component = some_component # does not work
effort.show_when_type = enhancement         # works!
effort.show_when_priority = high            # works!

I've tried to add a comment to #11186 but couldn't (even after the captcha
the comment is rejected). So here it goes. Any suggestion? thanks in
advance!


-- 
fernan

// If not controlled, work will flow to the competent ones
    until they submerge -- Charles Boyle //

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/trac-users/CAC62LX60gye%2BBkazVoWP1yg_Ky0jYTpV8wKRNnPRtv8a-tvuDA%40mail.gmail.com.

Reply via email to