Hi Michael,
I’ve just checked with a developer and to achieve this, insert the JS script below into GD > Design > Scripts > Header script code . This code only applies to “Custom Fields”
jQuery('input[field_type="phone"],input[type="tel"]').on("contextmenu", function(e) {
return false;
});
jQuery(document).on('keypress', 'input[field_type="phone"],input[type="tel"]', function(e) {
var key = e.charCode ? e.charCode : e.keyCode ? e.keyCode : 0;
if (jQuery.inArray(e.key, ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "-", " ", "+"]) !== -1) {
return true;
} else if (e.ctrlKey || e.shiftKey) {
return false;
} else if (jQuery.inArray(key, [8, 35, 36, 37, 39, 46]) !== -1) {
return true;
}
return false;
});
Thanks!