Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [lightning-recordeditform]

The tag has no usage guidance.

1
vote
1answer
23 views

lightning:recordEditForm | Some input fields not being displayed

I'm trying to create a new form for a custom Object in salesforce. This is my form Code: <lightning:recordEditForm aura:id="MyFormId" objectApiName="...
1
vote
1answer
52 views

How to find a dynamically assigned aura:id?

I'm looking for getting a dynamically assigned Aura:id. Below is my attempt to read it in Lightning:recordEditForm. Component markup: <aura:component > <aura:handler name="init" value="{...
0
votes
0answers
12 views

How to bypass FLS for Lightning:recordEditForm for Community Guest User

I'm trying to update a Contact record as Guest Community User. Lightning:recordEditForm seems does not allow community guest user to load or save the record, and gives me following error on community ...
3
votes
3answers
57 views

How to read lightning:recordEditForm Object instead of using API

I got 3 lightning:recordEditForm components on a wizard (3 pages handled by slds-hide/show) to capture details. At the last wizard page it must save first object, and 2nd object must get first object'...
2
votes
2answers
173 views

Summer 19 breaks undocumented lightning:inputField feature - variant=“label-hidden”, what are alternatives?

Seems like attribute doesn't work anymore. I know before label-hidden variant, I used to be able to hide labels using some CSS. Unsure what it was anymore.
2
votes
1answer
75 views

Can't change case Owner in Aura using <lightning:recordEditForm>

Is there any way to change Owner of case using Lightning record edit form? I Want to use OwnerId Field only. When I use <lightning:inputField variant="label-hidden" fieldName="OwnerId" ...
0
votes
1answer
23 views

Why doesn't my field assignment work for lightning:recordEditForm?

I have a component with a lightning:recordEditForm that I build using an aura:iteration over fields from a field set for Order Products. I've added a custom submit method in my controller that makes ...
4
votes
0answers
141 views

variant='label-hidden' Not Working for lightning-input-field When field is a Lookup

I have a Lightning Web Component and in that I'm using a lighting-record-edit-form. I'm trying to use a custom label for an input by hiding the default one for the lightning-input-field and adding my ...
0
votes
0answers
105 views

Lightning Record Edit Form onsuccess not firing

Having issues getting the onSuccess Event to fire on my Lightning:recordEditForm. My submit button is outside of the Lightning:recordEditForm and that works perfectly but i'd like to have the ...
0
votes
1answer
62 views

Use variable from lightning:recordEditForm in aura:if / ternary statement

I want to conditionally render one of the fields from recordEditForm. I've already done with attributes that are outside of form, but this time I want to bind the directly. Thinking something like ...
0
votes
0answers
25 views

How to validate lookup lightning input field in record Edit form

I have a record edit form with multiple custom lookup fields. Standard validation rules on lookup fields with an invalid input would give an error message "An invalid option has been choosen". Looks ...
0
votes
1answer
122 views

Saving Lightning Select Value

I'm trying to display a drop down on a custom component and once a value is selected I would like to update the value in the database. I'm finally able to load the values from the database, set the ...
0
votes
0answers
15 views

Retain previously entered lookup values in a Flow

Was wondering if there is a way to save a previously entered lookup value in a flow? i want to give my users the ability to click previous and still have the value they just looked up be there. It ...
0
votes
1answer
34 views

recordEditForm fails to rehydrate picklist fields

I've noticed that recordEditForm fails to load picklist values. It saves them properly, but try to reload page and picklist fields are blank, while checkboxes and text fields are fine. Feels like a ...
1
vote
0answers
25 views

Add Event Handler to Next button in Flow

Having some trouble validating an Aura component field (it allows lookup in Flow) as i can't seem to think of how to fire an onclick event from the standard Next button (in flow). I would use the ...
0
votes
0answers
46 views

Getting error in higher environment org - Test Environment (SIT), but not in development environment

I am facing a weird issue with lightning record edit form that was not coming till yesterday and is coming only in SIT and not in the lower environment developer org. The issue is when a user selects ...
0
votes
0answers
34 views

how to remove lable in lightning record edit form fields [duplicate]

i want to remove field label in lightning:inputfield.i use variant="label-hidden",but lookup fields labels are not removing it removing label for other type fields.
0
votes
0answers
326 views

Lookup Filters in custom lightning:recordeditform lightning:inputfield using prepopulated values

I'm using lightning:inputfield in a lightning:recordeditform for lookup fields - we'll call them Party and Warehouse. The Warehouse lookup has filters on it based on the Account field - Warehouse....
1
vote
1answer
342 views

Setting today's date from lightning controller

I am new to salesforce lightning. I have a recordEditForm that I want to submit and before submit I want to make set field TODAY's date from the lightning component controller.I am not able to set the ...
0
votes
0answers
154 views

Lightning:inputField Could not find picklist values for field using GlobalValueSet

I'm using the lightning components lightning:recordEditForm and lightning:inputField to compose a form for a Record Creation. the component works correctly as long as I do not use a picklist field ...
0
votes
1answer
235 views

salesforce lightning recordEditform to update the list

I am new to salesforce lightning. There are Two objects. Lead and customer. lead is lookup from customer object. I created a custom button on lead object, the button will call a lighting component ...
3
votes
0answers
236 views

lightning:recordEditForm. Override submit retrieve undefined on event.getParam('fields')

I had a working code on Winter 18 which override the standard submit event on recordEditForm component but it is not working on Spring 19. When I try to retrieve fields using event.getParam('fields'); ...
1
vote
0answers
201 views

Get the fields and values form recordEditForm before submit the form

I am using lightning:recordEditForm to generate a form for cloning opportunity record. currently, there is no functionality to clone a record using lightning:recordEditForm. So what Approach I am ...
0
votes
1answer
171 views

lightning:recordEditForm not showing lookup search window in community

I'm using lightning:recordEditForm to create new opportunity my code is <aura:attribute name="objAPIName" type="String" default="Opportunity"/> <lightning:...
1
vote
0answers
373 views

Unable to update record edit form field on button click

I have a requirement where I have a validate button for Lightning:recordEditForm on click of which it needs to update certain fields. So my code is something like this <lightning:...
0
votes
1answer
251 views

Error message: Invalid literal value [1, 1]: 'WorkOrder' - Lightning Components - Dynamic Binding

I have a issue, I'm trying to create a Dynamic Form with two lightning Components and fieldsets, each component's related to an Object 'WorkOrder' and 'WorkOrderLineItem'. I pass the API names of each ...
0
votes
1answer
372 views

Salesforce lightning setting slds column rows to be the same height

I'm using lightning:recordEditForm with lightning:inputField to generate a list of fields. I dynamically create a lightning:inputField component and add it to an slds column. The lightning:...
0
votes
2answers
300 views

Dynamically creating lightning:inputField with a div

Currently I have this loop which can dynamically create a lightning:inputField: for(var i = 0; i < editFieldsToRender.length; i++) { $A.createComponent ( "...
0
votes
1answer
268 views

<lighting:inputField> disabled in a custom Lightning component when using standard lookup

I am trying to understand why the ownerid field shows up as an uneditable field <lightning:recordEditForm aura:id="recordViewForm" objectApiName="Case" ...
2
votes
2answers
3k views

How to do field validation on lightning:recordEditForm with lightning:inputField

Background I have a lightning component with a lightning:recordEditForm for creating new Opportunity records. The lightning:recordEditForm contains many lightning:inputField 's I would like to ...
2
votes
0answers
116 views

How to display errors on compound fields in Lightning Record Edit Form

My lightning:recordEditForm contains compound and regular (non-compound) fields. The regular fields display errors (field validation error, required field error, etc.) on the field. But, the compound ...
0
votes
1answer
146 views

Can we perform frontend validation with lightning:inputField? [duplicate]

I'm creating some small lighting components for use with Quick Actions. While "Never trust the client" means I will have backend validation, for a good user experience, I'd prefer to prevent bad data ...
1
vote
1answer
97 views

Add picklist to community based form using lightning data service

I've got two fields on a Contact that I want to ask on a separate page with some verbiage on it and for some reason, I cannot get any of the LDS record handlers to work properly. I thought I would be ...
0
votes
1answer
295 views

lightning:recordEditForm error. Field does not exist

When using lightning:recordEditForm I am getting the following error in the <lightning:messages />: Field does not exist. Here is the markup I am using: <lightning:recordEditForm aura:...
0
votes
1answer
250 views

Position submit button of the lightning:recordEditForm in the footer part of the modal window in slds [duplicate]

Is it possible to position submit button of the lightning:recordEditForm in the footer part of the modal window in slds? The problem is that the button should be between the lightning:recordEditForm ...
5
votes
2answers
139 views

accessing a lighning inputField lookup name client side

I am easily able to fetch a lookup ID from a inputField <lightning:recordEditForm objectApiName="Case"> <!-- the messages component is for error messages --> <...
2
votes
1answer
702 views

lightning:recordForm not showing fields when using recordId

I'm using lightning:recordForm with recordTYpeId for showing the user a new blank form when they need to input data. This works great since the page layout is controlled by the administrator for the ...
4
votes
1answer
473 views

Not able to set value for Lightning:inputField field if it's manually modified from UI

I am facing issue with Lightning:inputField with lightning:recordEditForm that when I am trying to programatically change the value of any field I am able to do only if user is not modifying that ...
0
votes
0answers
357 views

How to Re-submit the lightning:recordEditForm after event.preventDefault()

I am stuck in a issue where i have to add custom validation on fields in lightning:recordEditForm. I am using the onsubmit method of lightning:recordEditForm to check the fields values and if the ...
1
vote
1answer
855 views

Multi Insert with recordEditForm

Is it possible to bulk insert a records using recordEditForm component?. Here's the sample lightning component which I tried: <lightning:recordEditForm aura:id="editFormAccount" objectApiName="...
3
votes
1answer
366 views

Are Lookup Filters supported in Custom Lightning Components?

So, there are two ways to get Salesorce Standard Lookup filed in Lightning components: force:inputField and lightning:inputField. However, no matter what I do, I can not get lookup filters to work. ...
2
votes
2answers
4k views

Easiest way to get a value from a lightning:inputField

I want to get the value from a lightning:inputField, but I can't. Component: <aura:attribute name="myAttribute" type="String"/> {!v.myAttribute} <lightning:recordEditForm objectApiName="...
0
votes
1answer
245 views

Action onchange for two dependent picklist in lightning:recordEditForm

I have two picklist fields, Country(controllling picklist) and State(dependent picklsit). State should change based on Country value for my lightning page. As of now this is happening, but State ...
10
votes
1answer
7k views

lightning:recordEditForm - Set or modify field values onsubmit

I have created a lightning component which allows the creation of a record in a custom object. I've used lightning:recordEditForm to capture the data, and to help the user it automatically populates ...
2
votes
1answer
496 views

Does lightning:recordEditForm work for more then one object?

I am building the form where I have 1-n object structure. For a sake of simplicity lets say I have an Invoice__c Custom Object and Item__c. If its only Invoice__c, it would be <lightning:...
2
votes
1answer
366 views

“INVALID_FIELD: LastViewedDate” when saving recordEditForm

I have the following recordEditForm component which does not use LastViewedDate: <aura:component description="ErrorTesting" implements="flexipage:availableForAllPageTypes" access="global"> <...
4
votes
0answers
439 views

lightning:recordEditForm - MS Edge issues

Brief: I have a container component that overrides the View Action of a custom object in Lightning Experience. The container component contains a component that renders a list of related records and ...
4
votes
1answer
885 views

lightning:recordEditForm “Received unexpected value during emit” error on loading randomly

I have one Lightning component with lightning:recordEditForm. Some times this is throwing an error "Received unexpected value during emit".If i refresh it sometimes it is not showing any error.It is ...
7
votes
1answer
787 views

Show form with page layouts && intercept save … Lightning:recordForm / force:recordData

Somewhat flummoxed with this lightning component. The use case is simple: Intercept the save event on a record edit, grab the new field values and do 'stuff' before saving the record. Example User ...
2
votes
1answer
466 views

Lightning record edit form issues with Person Account

I was rendering the person contact details using lightning record edit form. Updating the person contact details using force:recordData lightning data service. If i'm updating the person contact ...