• kd T 2
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 3
    Replies
Here is the code:
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" access="global" >
    
    <lightning:recordEditForm objectApiName="Menu__c" >
    <lightning:messages />
    <lightning:inputField fieldName="Item_Name__c"/>
    <lightning:inputField fieldName="Item_Type__c"/>
    <lightning:inputField fieldName="Item_Category__c"/>
    <lightning:inputField fieldName="Price__c"/>
    <lightning:button type="submit" value="Save" label="save"/>
    </lightning:recordEditForm>
</aura:component>

User-added image
  • September 20, 2019
  • Like
  • 0
There is one object called Compliance__c, on Compliance__c there is one field called ‘order__c' that contains the case 7 digit sales order no. We’ve to pull Account from Compliance__c by matching sales order 7 digit with order__c on case Account field(Account Id).
It should run only for QA record type.
Here is the code:
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" access="global" >
    
    <lightning:recordEditForm objectApiName="Menu__c" >
    <lightning:messages />
    <lightning:inputField fieldName="Item_Name__c"/>
    <lightning:inputField fieldName="Item_Type__c"/>
    <lightning:inputField fieldName="Item_Category__c"/>
    <lightning:inputField fieldName="Price__c"/>
    <lightning:button type="submit" value="Save" label="save"/>
    </lightning:recordEditForm>
</aura:component>

User-added image
  • September 20, 2019
  • Like
  • 0
There is one object called Compliance__c, on Compliance__c there is one field called ‘order__c' that contains the case 7 digit sales order no. We’ve to pull Account from Compliance__c by matching sales order 7 digit with order__c on case Account field(Account Id).
It should run only for QA record type.