We’ve developed some resources to help you work effectively from home during COVID-19 Click to learn more

Issue with code field on Company card

Hi

Does anyone know if it is possible to stop code field from generating a code when creating a companycard?

RE: Issue with code field on Company card

ehm... I am not sure I understand.
The Number field is subject to the Number allocation system ( see Admin/Options/Number allocation ).

Are you seeing the Code field, the field right above Number, get some default value when creatng a new Contact?
Any scripts running?

Have a look at Admin/Options/Number allocation first.

Conrad

Av: Conrad Weyns 10. okt 2015

RE: Issue with code field on Company card

Tim is right. The Code field (crm7.contact.number1) has always been filled with a short-version of the company name. So when you create a company called "This is a long company name" it'll fill the code field with "THISISALO".

It's been that way for as long as I can remember. It's totally useless, and we often create a script for blanking it out, like this:

Sub OnCurrentContactCreated
  CurrentContact.Number1 = ""
End Sub

In the Win 8 beta 2 there seems to be a GUI bug. You have to create the new contact, and then go to another contact card and back before you see the value.

Av: Frode Lillerud 10. okt 2015

RE: Issue with code field on Company card

will this crash? I tried to post 3 times now but it crashed - trying Edit now.

Yes you are right.
Goes to show how many time I create a real contact...
This is hard-coded in the model's SetName method.
Try lobbying at the right people to wrap this into a preference or simply remove it. 

NB: Field will auto-update in 8.0 now, thanks to Frode :-)
Conrad 

Av: Conrad Weyns 10. okt 2015

RE: Issue with code field on Company card

This post is 2 years old, and the Code field still behaves like it's a bug....autofilling with a contraction of the company name. And it cannot be disabled....buggers!

Come on, SuperOffice....it must be REALLY easy to at least give us an "Enable/Disable autofill" in Admin.

Av: Søren Lyster 21. sep 2017

RE: Issue with code field on Company card

This issue needs some love. Should be simple to add a preference to disable automatically generating the code field, shouldn't it?

Av: Frode Lillerud 6. feb 2020

RE: Issue with code field on Company card

I agree! I often get questions about what Code is useful for, and the answer is always.. "Eh... not that much"?

Now that the company screen has gotten a new new field (Main contact, in Web anyways), why not take another one out? :)

Av: Espen Steen 6. feb 2020

RE: Issue with code field on Company card

No, don't remove the field. It's useful to have a textfield. We just want to be able to have a say on wether it should be automatically filled or not. The automatically created string isn't useful.

Av: Frode Lillerud 6. feb 2020

RE: Issue with code field on Company card

That I agree with, it is mostly the automatically generated string that is unecessary and to some new users often confusing.

Av: Espen Steen 6. feb 2020

RE: Issue with code field on Company card

This is Win talking...
I can use 30 secs to add the following preference guard for this in our ContactModel:

if ( m_Prefs.GetBool( PSFunctions, L"AutoGenerateCodeFieldInContact", true ) )
   ..............

But if you want this in all clients, visible in Admin preferences, we need new IMP files, CDD step, translated resources etc etc...
Then you need to do more lobying in the right quarters!
The Web team (and every one else over there) is very busy with new features - as allways:-)

/conrad

And yes, Win has the new Main contact field :-)

 

Done in 8.5 R11, Win only, not published.
You can use a vbscript to set it or some sql.
"Functions" "AutoGenerateCodeFieldInContact"

Av: Conrad Weyns 6. feb 2020