Skip to content

Commit 970ef10

Browse files
committed
Fix validation of only required fields. Fixes #60
1 parent 8e20a65 commit 970ef10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

assets/wpuf/js/frontend-form.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,10 +462,10 @@
462462
WP_User_Frontend.removeErrors(self);
463463
WP_User_Frontend.removeErrorNotice(self);
464464

465-
// ===== Validate: Text and Textarea ========
466-
var required = self.find('[data-required="yes"]:visible');
465+
// Validate: Required Fields
466+
var validate = self.find('[data-type]');
467467

468-
required.each(function(i, item) {
468+
validate.each(function(i, item) {
469469
// temp_val = $.trim($(item).val());
470470

471471
// console.log( $(item).data('type') );

0 commit comments

Comments
 (0)