Hi again @bitstormdesign
Please add a must-use plugin to your site’s wp-content/mu-plugins folder like this https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins, then add the following code to the plugin’s php?file:
<?php
add_action( 'wp_footer', 'wpmudev_remove_leading_zero_masking', 9999 );
function wpmudev_remove_leading_zero_masking() {
global $post;
if ( is_a( $post, 'WP_Post' ) && !has_shortcode( $post->post_content, 'forminator_form' ) ) {
return;
}
?>
<script type="text/javascript">
jQuery(document).ready(function($) {
setTimeout(function() {
$('.forminator-custom-form').trigger('after.load.forminator');
}, 100);
$(document).on('after.load.forminator', function(event, form_id) {
if ( event.target.id == 'forminator-module-4444' ) {
$('.forminator-number--field').each(function() {
$(this).on('focus', function() {
if ( !$(this).val() ) {
$(this).inputmask({'placeholder' : ''});
}
});
});
}
});
});
</script>
<?php
}
4444 should be replaced with your form ID. You can find your form ID in page source where form is located, or edit your form in WP Dashboard and URL of that page edit will contain that ID.
We recommend testing this on the dev/staging version first before putting it on the live site.
Kind Regards,
Kris