2011/9/17 Steffen Hoffmann <[email protected]>: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > >> Here is a plugin that may do what you need. Take a look. >> >> https://github.com/daltonmatos/trac-plugins/tree/master/ConditionalField >> sPlugin > > ConditionalFields should do fine, but I've not used it by now. Did you > succeed already?
Yes. We have an internal Trac instance with this plugin running. We use Trac every day, all day long, it's our main internal tool. In additional to this we have another plugin that validate the field content against our internal LDAP database. We do this validation mainly on the Cc field. > If not, you might want to have a look at DynamicFieldsPlugin. With your > requirement in mind I would setup > > [ticket-custom] > summary.clear_on_hide = true > summary.hide_when_type = '---select type---' > > Untested, but you'll get the idea. I've chosen summary, because without > summary Trac will complain and deny to create the ticket, so you should > get exactly what you want. Still required field coloring might be a nice > (unique) feature of ConditionalFields. > I took a look at the DynamicFields source-code. It's an amazing implementation! Congratulations! -- Dalton Barreto http://daltonmatos.com -- You received this message because you are subscribed to the Google Groups "Trac Development" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en.
