> I took a look at the DynamicFields source-code. It's an amazing > implementation! Congratulations!
Hey, thanks! You just motivated me to add a ValidateRule to the Dynamic Fields plugin: [ticket-custom] owner.invalid_if = I updated the docs at: http://trac-hacks.org/wiki/DynamicFieldsPlugin Be sure to use the 0.11 branch (I did not update the 0.12 branch which has some problems and will eventually be merged with 0.11 into one branch - Steffen, I still intend to do this some day, really, partner!). If anyone gives this new field validation a spin let me know as I just wrote it and so it hasn't enjoyed too much testing yet. Cheers. - Rob On Sep 17, 2011, at 2:06 PM, Dalton Barreto wrote: > 2011/9/17 Steffen Hoffmann <hoff...@web.de>: >> -----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 trac-dev@googlegroups.com. > To unsubscribe from this group, send email to > trac-dev+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/trac-dev?hl=en. > -- You received this message because you are subscribed to the Google Groups "Trac Development" group. To post to this group, send email to trac-dev@googlegroups.com. To unsubscribe from this group, send email to trac-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en.