Activity Forums Salesforce® Discussions In Salesforce, How to use "force:inputField" and "force:outputField" inside an "aura:iteration"?

  • Vikas Kumar

    Member
    January 23, 2017 at 7:52 am

    Hi Tanu,

    force:inputField and force:outputField have always been provided the metadata definition of what the sObject was by their containing component

    The way to do this is to provide a default value object to the Account attribute, like this:

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

     

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos