Controlling order of errors in custom forms

I'm using the %form_errors% tag on a custom form. When I submit the form without required/mandatory fields, the error message appears and tells me which fields are incomplete - so that's working fine.


However, the fields in the error message are coming up in no particular order (certainly not the order I entered the fields in, nor the order that appears in the asset tree, nor the order I've put the fields in using the up/down arrows on the section details screen.



How can I make sure the fields in the error message come up in a logical order?



[As an aside, I posted some questions in the support section of this forum a few days ago that I still need answered about custom forms. Does anyone at Squiz want to have a go?]

Just a note: The forums are not an official support resource. As a Squiz client, if you're looking for immediate response to an issue, please log it via our Support desk. :slight_smile:

Hi Avi,


Do we really need to be using our support package to find out if something is a bug or the way the system was designed to work?

You certainly don't., and that's not what I was trying to say. :slight_smile: I meant that if you need a resolution on a particular issue within a fixed timeframe, then you'd get a more rapid response using the official support channel.

Thanks for clarifying that :D’ /> . It’s just that every day there is activity and answers to other questions, and sometimes I wonder why my questions languish unanswered <img src=‘http://forums.matrix.squiz.net/public/style_emoticons/<#EMO_DIR#>/sad.gif’ class=‘bbc_emoticon’ alt=’:frowning: .

Its usually because the developer most responsible for that code is overworked and unable to read the forum as often as you'd like. :smiley: I will try and forward unanswered questions to the most appropriate developer in future.

Just curious if there's someone who knows about custom forms and can answer this yet?

The form errors current appear in the order that the form is processed, which is as they are added to the form. Perhaps they should be in the sort order of the form (that would be the most logical), but this will require development time to implement.

Thanks for clarifying that. I’ve logged a bug on the bug tracker (#564).

We would like to be able to edit the form error messages in order to simlify them. Is this something that can be done without server access?

You cannot edit the form error messages without changing the source code. Perhaps a feature request to make the form error messages configurable for each form?

Custom error messages will be possible on a rule-level basis with the next released version of MySource Matrix.