Default Value for custom fields

Hello Everyone,
I’ve got a little problem:
I’m trying to make a default value for a custom field but it’s not working correctly.

I’ve added this line of code:

but still not working correctly. It’s displaying the value “PAKICE” but when i try to save it displays: [color=#ff0000]No match for field: General Business Posting Groups[/color] even that the value it’s in textfield.

Here is the screenshoot: ,

You can see in the Picture that one field with name “VAT Business Posting Groups” has the default value “VENDOR” and for that field it’s working.
Is there any javascript file that I can make the default value ? If yes, can you tell me where can I change it.

Thanks for your time.


Have you tried doing it from Studio, instead of from code?

And you don’t mention where you made that dictionary definition (which file, in which folder, what else is in that file).

You can check out the Developer Guide to see where this should be done.


your field is a related field, which means that you’d probably have to refer to the ID of the account to make this work.

You can find out the ID of the Account PAKICE by navigating to this account and look at the URL, it should be something like this:


Look at the end, where it says record%3D…


You’ll need the part after the %3D which in this case would be


Replace PAKICE with this ID like this:

1 Like


in this file i made the dictionary definition.