0
    <aura:attribute name="dealerAccount" type="Account"    default="{'sobjectType':'Account'}"/>

    <force:inputField  value="{!v.dealerAccount.ShippingCountryCode}"/>
    <force:inputField  value="{!v.dealerAccount.ShippingStateCode}"/>

But the problem is on selection of country state is not changing.

0

1 Answer 1

1

I am sure you are getting those rendered as "read-only" too. If you look at the documentation, dependent picklists are not supported with force:inputField

Dependent picklists and rich text fields are not supported. State and country fields in addresses display as read-only fields

To be able to utilize dependent picklists, use lightning:inputField instead.

2
  • <lightning:inputField fieldName="ShippingCountryCode" /> --- Field not visible <lightning:inputField fieldName="ShippingStateCode" /> --- Field not visible <lightning:inputField fieldName="ShippingCountry" /> --- Field visible as text not picklist <lightning:inputField fieldName="ShippingState" /> --- Field visible as text not picklist Sep 27, 2018 at 6:56
  • 1
    @PrasantaKumarPardhi You need to open that as another question. With what you had asked in this question first has been answered. If you implement anything other than that and does not work, that classifies as a new question.
    – Jayant Das
    Sep 27, 2018 at 11:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .