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

  • In Salesforce, How to use "force:inputField" and "force:outputField" inside an "aura:iteration"?

  • Tanu

    Member
    October 25, 2016 at 3:07 pm

    Hi All,

    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' }"/>

     

Viewing 1 - 2 of 2 posts

Log in to reply.

Original Post
0 of 0 posts June 2018
Now