[[PageOutline(2-5,Contents,pullout)]] = Validate ticket fields == Description This plugin allows you to perform validations on form input fields in your Trac pages. Key features: * require the email address of an anonymous contributor and validate this email address * support required fields * match values in fields using regular expression As an example, the following additions could be made to your `trac.ini` file: 1. Validate anonymous author email address and make the comment a required input: {{{#!ini [components] tracticketvalidator.* = enabled [ticketvalidator] validate_author = true validate_author.tip = Please enter your email address validates = comment, summary comment.rule = .+ comment.tip = Please input comment summary.rule = [A-Z].* summary.tip = Please correct summary }}} '''Note''': when validating more than one field, use a list after `validates =`. 2. There is a very straightforward implementation of parent/child tickets: just prepend the parent ticket number to the child ticket summary. For example, if the parent ticket 234 summary is {{{<#0>A parent ticket}}}, then the child ticket summary will be {{{<#234>A child ticket}}}. We can perform a validation using regular expressions as follows: {{{#!ini [components] tracticketvalidator.* = enabled [ticketvalidator] validates = summary summary.rule = ^<#\d*>.* summary.tip = Please correct summary format }}} == Bugs/Feature Requests Existing bugs and feature requests for TracTicketValidatorPlugin are [report:9?COMPONENT=TracTicketValidatorPlugin here]. If you have any issues, create a [/newticket?component=TracTicketValidatorPlugin new ticket]. [[TicketQuery(component=TracTicketValidatorPlugin&group=type,format=progress)]] == Download Download the zipped source from [export:tracticketvalidatorplugin here]. == Source You can check out TracTicketValidatorPlugin from [/svn/tracticketvalidatorplugin here] using Subversion, or [source:tracticketvalidatorplugin browse the source] with Trac. == Installation General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page. == Recent Changes [[ChangeLog(tracticketvalidatorplugin, 3)]] == Author/Contributors '''Author:''' [wiki:richard] [[BR]] '''Maintainer:''' [[Maintainer]] [[BR]] '''Contributors:'''