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

  • How to use force:inputField and force:outputField inside an aura:iteration?

    Posted by Karen on May 5, 2017 at 3:50 pm

    How to use <force:inputField> and <force:outputField> inside an <aura:iteration>.

    Suraj replied 7 years, 6 months ago 2 Members · 1 Reply
  • 1 Reply
  • Suraj

    Member
    May 29, 2017 at 7:57 am

    Hi Karen,

    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