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 b8551c5 commit 6397554Copy full SHA for 6397554
src/definitions/behaviors/form.js
@@ -1165,6 +1165,14 @@ $.fn.form = function(parameters) {
1165
}
1166
1167
});
1168
+ },
1169
+ optional: function(identifier, bool) {
1170
+ bool = (bool !== false);
1171
+ $.each(validation, function(fieldName, field) {
1172
+ if (identifier == fieldName || identifier == field.identifier) {
1173
+ field.optional = bool;
1174
+ }
1175
+ });
1176
1177
},
1178
0 commit comments