View Issue Details

IDProjectCategoryView StatusLast Update
0021944mantisbtuipublic2026-01-27 04:42
Reportermcmo Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version2.0.0-rc.1 
Summary0021944: Show all errors at once on an incomplete webform
Description

when several required fields are missing, the corresponding error messages appear each one after the other when submitting the issue report.
it would be better to have all missing fields listed in one error message.

Steps To Reproduce

1- create a project with several required custom fields
2- report an issue without filling several of those required custom fields.

TagsNo tags attached.

Relationships

related to 0006605 new Javascript form validation 

Activities

barts2108

barts2108

2026-01-20 09:15

reporter   ~0070721

I have take some time to write a simple plugin for MantisBT that adds unobtrusive validation to the forms.

https://github.com/barts2108/MantisBTUnobtrusiveValidation

The plugin currently valdiates the report_bug_form and update_bug_form and only for the already required fields.
Commented in the javascript, a function call is present that we use to validate 2 custom fields, where at least one must have a value.

The plugin adds a validate.rules.css file and 3 javascript files (jquery.validate.min.js, jquery.validate.unobtrusive.js, validate.rules.js) to the pages using two events.

The validate.rules.css file can be used to format the validation errors.
The validate.rules.js file can be used to add validation rules.

amphetamine

amphetamine

2026-01-27 01:14

reporter   ~0070734

Conflicted with the BBCodePlus plugin, the edit palette is missing

barts2108

barts2108

2026-01-27 04:42

reporter   ~0070735

@amphetamine : I think I found the issue. A leading space before the <?php tag in the plugin. Will update soon.