Adding new field 'country' to Phone/Email screen

Hi ,

I would like to add a new drop down field country onto the Phone/email screen of the company. The phone number field of the company needs to be validated upon the country entered. As european numbers differ from other numbers, this would be better. After the country is entered, a corresponding phone number mask is to be implemented.

can anyone help me on this?

  • 0

    By default there is already a country code field against a phone number which is designed to caption the country dialling code. If this is not visible it might have either been turned off manually or via some integration if you are running some.

  • 0

    Alex

    Country Code within Phone numbers is controlled by the "Use country code" setting within

    Administration -> System -> System Behaviour

    Please see

    www.youtube.com/watch

    If you want to convert the default 'text' presentation of the field to a selection list then this would require some thought.

    For example the country code for each phone number type is dynamically created. Let's assume that you just keep with the default types then the business type for a company would be rendered in HTML as

    A selection field looks like this

    21 - 5051 - 100101 - 200201 - 500501+--None--

    You would have to find a way of building the set of options. You can't do this server side using a create script to change the fields entrytype in metadata because the fields in the phone/email screen are built dynamically and are not controlled within a 'screen' in metadata. You have to do this in Client Side script and I would wonder whether this was worth the effort.

  • 0

    Thanks Daniel for your response. I wanted to implement something like seen in the attachment. As per the country selected, the mask has to be implemented in the business phone number field. I removed the area and country code fields from system behavior feature.

  • 0

    thanks jeff. This helped.

  • 0

    Ahh this will be more tricky. You will either need to add the field or adjust the existing country field into a dropdown via client side javascript as that screen is locked down in the core of Sage CRM. This is something you should approach your business partner (if you have one) to perform for you as its quite complex.