Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#2807 closed defect (wontfix)

allow overriding default "This field is required." text

Reported by: wildfire@… Owned by: adrian
Component: Validators Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:



If you create a cutom form, you can specify the isRequired property. If it is set to True and the field is not submitted, the error raised will be a (very) generic "This field is required.".

It would be useful if you could override the return validationerror somehow.

One possibility is the make isRequired a 'ready-made' validator rather than a property since all ready-made validators have an error_message that can be passed in if validation fails.

It would also remove the special-case handling of 'isRequired' and make it just another validator. Being generic can be good - especially if you get to throw in a feature for free :-)

Attachments (0)

Change History (1)

comment:1 Changed 8 years ago by adrian

  • Resolution set to wontfix
  • Status changed from new to closed

Not worth fixing this one.

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.