New Posts New Posts RSS Feed: ValidationErrors Sequence
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

ValidationErrors Sequence

 Post Reply Post Reply
Author
erika View Drop Down
Newbie
Newbie


Joined: 04-Jul-2012
Posts: 5
Post Options Post Options   Quote erika Quote  Post ReplyReply Direct Link To This Post Topic: ValidationErrors Sequence
    Posted: 01-Oct-2012 at 1:49am
Hi all,

Is there any way i could put sequence in the validationerror collection? E.g. I have several fields in the form, ID, Name, Group, etc. I want all validation errors related to ID be collected as the top errors, then continued with Name, etc. Currently, seems the required validation is verified first to all fields, then my other custom verifiers. 

Is there any way to sort the collection? Thanks.

Regards,
Erika
Back to Top
sbelini View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 13-Aug-2010
Location: Oakland
Posts: 786
Post Options Post Options   Quote sbelini Quote  Post ReplyReply Direct Link To This Post Posted: 04-Oct-2012 at 12:09pm
Hi Erika,
 
Unfortunatelly, you can't set the order the validation occurs.
Is there any particular reason the validation order is required?
Note that while the order of the validation process can't be changed, you can always sort the validation collection result by your specific criteria.
 
sbelini.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down