<!--
 * WordPress Plugin: Masks Form Fields - https://wordpress.org/plugins/masks-form-fields/
 * Custom script to apply a Ukrainian phone mask to the phone field.
-->
<script type="text/javascript">
jQuery(document).ready(function($){
    // To apply the custom mask, add the class 'phone_custom' to the desired input field in your form
    // Apply the mask '+38(0__) ___-__-__' for the custom phone number format
    // Added 'X' for fixed '0' in the formatting using translation
    // The {placeholder: '+38(0__) ___-__-__'} defines the guide text for the mask
    jQuery('input.phone_custom').mff_mask('+38(X00) 000-00-00', {
        translation: { 'X': { pattern: /[0]/, optional: false, fallback: '0'}},
        placeholder: "+38(0__) ___-__-__"
    });
});
</script>