Questions tagged [lightning-recordeditform]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
36 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
43 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 ...
2
votes
0answers
118 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
61 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 ...
9
votes
1answer
9k views

Setting attribute required to lightning:inputField

in Salesforce classic I created an object ,Equipment__c' and the field ,License plate' amongst others. We are using the object ,Equipment__c' for different types of equipment. For trucks the field ,...
0
votes
0answers
129 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.
1
vote
1answer
1k 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
306 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
647 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 ...
1
vote
0answers
618 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 ...
3
votes
0answers
535 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'); ...
4
votes
1answer
682 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
1answer
289 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:...
6
votes
1answer
2k views

On lightning:recordEditForm how can I retrieve the recordUi onload-actions return parameter?

The docs here indicate, that the onload-action return the following: Parameter : recordUi Type : Object Description : The object metadata. For more information, see the User Interface API Developer ...
0
votes
1answer
364 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:...
2
votes
0answers
516 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
555 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
987 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
595 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
534 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" ...
7
votes
1answer
6k views

How to get Created Record ID in Lightning:recordEditForm?

I am using lightning:recordEditForm and lightning:inputField for creating a new record. this component is being used inside a lightning community builder. When i click the submit button, i am able to ...
4
votes
2answers
6k 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
138 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
251 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
158 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 ...
2
votes
1answer
1k 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 ...
1
vote
1answer
533 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
216 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 --> <...
0
votes
0answers
483 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 ...
8
votes
1answer
1k 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 ...
1
vote
0answers
1k 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
2answers
12k 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
395 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 ...
17
votes
1answer
14k 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
714 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
485 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
1answer
1k 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 ...
3
votes
2answers
9k views

Set field values on lightning:recordEditForm (record create mode)

I am using lightning:recordEditForm to display records that may be new or existing. This is working nicely, however I now want to preset one of the fields. The fields are displayed using lightning:...
3
votes
1answer
5k views

Lightning:inputField not allowing decimal numbers to be inserted

I am using <lightning:recordEditForm> and <lightning:inputField fieldName="customField"/> to create a form. My custom field is Number field with setup number(16,2) - length 16, decimal ...
3
votes
0answers
383 views

Are lightning:recordEditForm and lightning:inputField a bit buggy in Spring'18?

I'm trying to get my hands on lightning:recordEditForm and lightning:inputField Im using it on Order Line Item like this <lightning:recordEditForm recordId="{!item.Id}" objectApiName="OrderItem" &...
7
votes
1answer
423 views

Is it possible to mass-save many lightning:recordEditForms with only ONE button?

Im implementing an line item editor for the "Order" SObject and want give lightning:recordEditForm with lightning:inputField a try for this. What I have so far is an edit for the order combined with ...
0
votes
0answers
1k views

lightning:recordEditForm onSuccess eventhandler Problem [duplicate]

I'm trying to catch the onsuccess event of a lightning:recordEditForm , because I need the Id of the record created. I'm not able to get that Id, how can I do that? Thank you for your help. Below you'...
6
votes
3answers
2k views

How to use $A.createComponents() on lightning:recordEditForm with nested lightning:inputField?

I've asked this question to change the objectApiName attribute of lightning:recordEditForm. Thanks to the great answer of @PranayJaiswal I found a workaround. Now I soon will face the need of having ...
8
votes
1answer
3k views

Is it possible to use lightning:recordEditForm dynamically on different object types with variable objectApiName?

I need to create an edit component for an SObject from which I do not know the objectApiName at design time. I only know the Id of the SObject. objectApiName could be any valid SObject-name. Now I ...
3
votes
0answers
906 views

lightning:inputField as lookup missing “New Record” option

Is it just me or is the lightning:inputField component missing the "New Record" option when it's rendered as a lookup? Right now I have to type a value in the lookup field, hit enter, and wait for ...
5
votes
2answers
997 views

Lightning InputField component with Salutation field

I'm using the lightning:recordEditForm with lightning:inputField and it's going quite successfully. However, I've run into an issue with the Contact.Salutation field. It works when it's a part of the ...
0
votes
0answers
3k views

How can we fire onchange handler when we dynamically change component v.value?

I'm trying to build a simple component: testComponent.cmp <lightning:recordEditForm aura:id="editForm" objectApiName="Contact" ...
15
votes
2answers
4k views

Anyone got a lightning:inputField working for a lookup?

I have a lightning:recordEditForm containing lightning:inputFields that I want to use to create a simple custom object. The 3 fields are: A picklist A lookup to Contact A lookup to Account presented ...
6
votes
1answer
2k views

How to validate the values before saving a record through lightning:recordEditForm and lightning:inputField?

I'm using lightning:recordEditForm and lightning:inputField to update a record. I need to validate the values before updation and I couldn't find any ways to get the values from lightning:...