Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
validateContactForm: function(component) {
var validContact = true;
// Show error messages if required fields are blank
var allValid = component.find('contactField').reduce(function (validFields, inputCmp) {
return validFields && inputCmp.get('v.validity').valid;
}, true);
return allValid;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.