diff --git a/static/js/src/dynamic-forms.js b/static/js/src/dynamic-forms.js index 70e1d7ede0..f9a976e634 100644 --- a/static/js/src/dynamic-forms.js +++ b/static/js/src/dynamic-forms.js @@ -500,6 +500,11 @@ import { prepareInputFields } from "./prepare-form-inputs.js"; setCheckboxLimit(); + // Sets up dial code dropdown options aka. intlTelInput.js + // and pre fills the country field + // This gets triggered when the modal is opened + prepareInputFields(phoneNumberInput, countryInput); + // Set preferredLanguage hidden input function setpreferredLanguage() { const preferredLanguage = getPrimaryParentLanguage();