You need to sign in to do that
Don't have an account?
Niraj 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.
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.
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 ..
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
I guess the solution is to use CountryCode and StateCode instead of Country and State
Thanks