= Validate ticket fields = == Description == * support validate anonymous to input valid email address * support required fields * support match fields to regular expression == Bugs/Feature Requests == Existing bugs and feature requests for TracTicketValidatorPlugin are [report:9?COMPONENT=TracTicketValidatorPlugin here]. If you have any issues, create a [http://trac-hacks.org/newticket?component=TracTicketValidatorPlugin&owner=richard new ticket]. == Download == Download the zipped source from [download:tracticketvalidatorplugin here]. == Source == You can check out TracTicketValidatorPlugin from [http://trac-hacks.org/svn/tracticketvalidatorplugin here] using Subversion, or [source:tracticketvalidatorplugin browse the source] with Trac. == Example == 1. Validate anonymous author email address and make comment required: {{{ [components] ticketvalidator.* = enabled [ticketvalidator] validate_author = true validate_author.tip = Please fill your valid email address validates = comment, summary comment.rule = .* comment.tip = Please input comment summary.rule = [A-Z].* summary.tip = Please correct summary }}} 1. There is a very straightward implement of parent/child tickets, just prepend parent ticket number to the child ticket summary. For example, the parent ticket 234 summary is {{{<#0>A parent ticket}}}, the child ticket summary will be {{{<#234>A child ticket}}}. We can do validation like following: {{{ [components] ticketvalidator.* = enabled [ticketvalidator] validates = summary summary.rule = ^<#\d*>.* summary.tip = Please correct summary format }}} == Recent Changes == [[ChangeLog(tracticketvalidatorplugin, 3)]] == Author/Contributors == '''Author:''' [wiki:richard] [[BR]] '''Contributors:'''