Skip to content

Commit

Permalink
Add reset for birth_date.
Browse files Browse the repository at this point in the history
  • Loading branch information
puresyntax71 committed Sep 15, 2023
1 parent 2ba54c4 commit 054b0c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/webform_civicrm_forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ var wfCivi = (function (D, $, drupalSettings, once) {
$(':input[id$="month"]', $wrapper).val(parseInt(date[1], 10)).trigger('change', 'webform_civicrm:autofill');
$(':input[id$="day"]', $wrapper).val(parseInt(date[2], 10)).trigger('change', 'webform_civicrm:autofill');
}
else {
$(':input', this).val('').trigger('change', 'webform_civicrm:reset');;
}
}
else {
$(':input', this).not(':radio, :checkbox, :button, :submit, :file, .form-file').each(function() {
Expand Down

0 comments on commit 054b0c3

Please sign in to comment.