We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent deab1e3 commit 0c6f0daCopy full SHA for 0c6f0da
assets/js/src/wp-user-manager.js
@@ -180,7 +180,11 @@ jQuery( function( $ ) {
180
this.validateFields = function(){
181
form.find('fieldset[data-condition]').each(function(){
182
var rules = $(this).data('condition');
183
- $(this).toggle( self.validateRules(rules) );
+ var validRule = self.validateRules(rules);
184
+ $(this).toggle( validRule );
185
+ $(this).find("input").prop("required", validRule);
186
+ $(this).find("select").prop("required", validRule);
187
+ $(this).find("textarea").prop("required", validRule);
188
});
189
}
190
0 commit comments