function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Shivani KalsiShivani Kalsi 

how to create address field with address datatype in custom object?

sfdcMonkey.comsfdcMonkey.com
hi Shivani,
   Unfortunately the "Address" field is something special in Salesforce such that you can't create something like that and have it behave exactly like that in the User interface of custom object. 
   You could however create individual text fields that would contain the address, city, state and zip codes.

i hope it helps you.
   Let me inform if it helps you and kindly mark it best answer if it helps you so it make proper solution for others
thanks 
sfdcmonkey.com  (http://sfdcmonkey.com )
SAKTHIVEL MSAKTHIVEL M
Hi All,

There is no updates and hope we need to wait some more time. upvote and add the comments to salesforce team to look back.
https://success.salesforce.com/ideaview?id=08730000000BrVWAA0

Thanks & Regards,
Sakthivel Madesh
Praveen PyatiPraveen Pyati

Hi, 

In 2020 still we don't have Adress element, i feel like this needs to be added soon to the list by salesforce, & till that we can use text element to create our own custom Address field in any custom object.

BrendanMurphyBrendanMurphy
Hopefully it's coming soon. Add a new Standard field type: Address (https://trailblazer.salesforce.com/ideaview?id=08730000000BrVWAA0)
Brian ColemanBrian Coleman
Coming Winter 23' release

https://ideas.salesforce.com/s/idea/a0B8W00000GdiWSUAZ/add-a-new-standard-field-type-address
 
Arun Kumar 1141Arun Kumar 1141
Hi Shivani,

You can do the following steps to create address field with address datatype in custom object

1. Open Setup and search for user interface in quick find box.
2. Click on the user interface.
3. Scroll down and in that you will see a unchecked checkbox "Use custom address fields ".
4. Check it and your address datatype will be enabled.

Make sure that after enabling the checkbox you can't disable it.

If you find this helpful, please mark it as best answer.

Thanks