Client-side validation example improvement
Client-side validation example improvement

In JS code in example i suggest to improve line 34
var firstName = editor.field( 'first_name' );
to
var firstName = this.field( 'first_name' );
because later in example on line 51 you are using this
if ( this.inError() ) {
return false;
}
This discussion has been closed.
Replies
Agreed! Thanks for flagging this up. It has been committed now and will be published soon.
Regards,
Allan