form-controls
form-controls copied to clipboard
Filter error message addition
Very simple, but great added benefit.
@lewiswharf: There is another issue with your apprach. In the case of post save filters, it might be that your event returns success but the filter fails. In this case you cannot render all the messages in one validation element (of class="success").
Imagine a Members registration with an email event filter. Assume that data will be saved, but your email filter fails. In this case you need two different validation elements:
- success: "Data saved successfully."
- error: "Sending an email was impossible; please call 0800-12345 so we can fix this ASAP."