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.
Thanks in advance.