Mobile No Default not Fetch

Dear Community,
In customer Doctype , i had one field name Mobile No as custom_mobile ,field type is Phone

Due to field type as phone it shows all country code but i need iraq code (+964) as default

even am use code:

frappe.ui.form.on('Customer', {
    onload: function(frm) {
        // Check if the custom_mobile field is empty
        if (!frm.doc.custom_mobile) {
            // Set the default country code to Iraq (+964)
            frm.fields_dict['custom_mobile'].$input.intlTelInput("setCountry", "iq");
        }
    }
});

or

frappe.ui.form.on('Customer', {
    onload: function(frm) {
        if (!frm.doc.custom_mobile) {
            frm.set_value('custom_mobile', '+964');
        }
    }
});

but not works

also am tried with make +964 as default in customization

how to make it as default.

image

Thanks in advance.

Please check the post.

after adding client script from reference

frappe.ui.form.on("Customer", {
   onload: function(frm) {
      if (frm.doc.custom_country == "Iraq") {
           frm.doc.custom_mobile = "+964-";
      }
   }
});


am facing this error even am enter mobile number

read this post.

if am enter 8 digits number its accept but am enter 10 digits its shows error

depend on country phone number digits

Thank you, but include country code it has 13 digits. like +964 1234567890

Please check it, A random number does not work for any country, you have to write a proper phone number.

Thanks for your help