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
Niraj GananiNiraj Ganani 

Country/State picklist are not showing in <lightning:inputAddress> tag

I have enabled country and state pick list enabled for the org.
It is showing pick list values for country and state when I create record through standard new button.
While I have one custom component in which I have used <Lightning:inputAddress> to show mailing address section but instead of pick list it shows text field for both state and country.
I also have tried through <ui:inputText> <lightning:inputField> nothing works.
Raj VakatiRaj Vakati
I belive its a standard behaiour ... 

When you trying to use the state and country values  in the object that will be a text filed  ( standard fields ) so itt will be showing as text .. 

If you want to as a picklist , please create a new custom fields with the picklist ( state and country ) and show them form .. 

 
Niraj GananiNiraj Ganani
Hi Raj thank you for your response.

I want to ask you one more thing.
Is it good idea to create manuall custom picklist for country and state and after that manually make them dependent, like for each country these are the states should show up.
Then what is the use of enabling country/territory picklist in org.

Thanks,
Niraj
Vishala Ramasamy 9Vishala Ramasamy 9
Hi ,

I guess the solution is to use CountryCode and StateCode instead of Country and State

Thanks