silverstripe / silverstripe-framework

Silverstripe Framework, the MVC framework that powers Silverstripe CMS
https://www.silverstripe.org
BSD 3-Clause "New" or "Revised" License
721 stars 821 forks source link

CMS 6: Support multiple messages for `Form` and `FormField` instead of a single message #10967

Open GuySartorelli opened 1 year ago

GuySartorelli commented 1 year ago

The FormMessage trait, and by extension anything that calls its methods, only supports a single message for the form, and a single message for each field.

This should instead support multiple messages. See https://github.com/silverstripe/silverstripe-framework/issues/10270 for one clear reason for this being necessary. There are ways around it by appending messages to the existing message but that's not ideal.