uniform-team / Uniform-Validation-Language

A logic language to simplify and improve online form validation.
Apache License 2.0
1 stars 0 forks source link

Submit and Value Tags #14

Open dgp1130 opened 8 years ago

dgp1130 commented 8 years ago

It would be useful to have a submit tag which specifies how data for a particular control should be submitted. This would allow minor corrections to be automatically fixed without requiring user involvement.

$("#email") {
    submit: this.lower(); // Lower case email before submitting
}

We may also want a value tag which is changed as the user modifies the control, so they see the new value, while submit would be hidden from them.

$("#email") {
    value: this.lower(); // Lower case email after user enters it
}