We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [forceinputfield]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
55 views

How to dynamically set a lookup field for the force:inputField component

I am trying to set the value of a 'force:inputField' lookup field dynamically, but it is not working. On click of the edit button, the record edit page gets open, but the Account value does not get ...
1
vote
0answers
109 views

Quick Action Lightning Component Throws Error due to Opportunity__c lookup field for Platform User

I created a custom quick action lightning component. This component contains a form with a lookup field to an Opportunity (see simplified code below). <aura:attribute name="config" type="...
0
votes
0answers
147 views

Cannot set <force:inputField> validation error on field in custom quick action lightning component

I have designed a quick action lightning component to clone one of our [complex] custom objects. The requirements are: Add a lookup field where the user would be able to choose another parent ...
0
votes
1answer
173 views

force: inputfield is not working properly for lookup fields inside the aura:iteration

<td valign="top"> <force:inputField aura:id="lookup" value="{!v.conitem.CERM__Account__c}"/> <br/> </td > <td IconName="custom:custom17" valign="top"> ...
0
votes
1answer
53 views

force inputfield doesn't display fields anymore , can't figure out the reason?

I'm new to lightning code and this code worked for me on Friday but after the winter'19 releases it doesn't work anymore nothing shows up, Can you please help me with this I'm not sure if the Event ...
2
votes
1answer
453 views

force:inputField for address - can't access the values in component

I am trying to use the "Autocomplete on Standard Addresses" feature in a custom lightning component by using the force:inputField component: <force:inputField value="{!v.contact.MailingAddress}" ...
0
votes
0answers
269 views

Rerender inputField on Lightning component (dependent picklist hack)

Is it possible to re-render an inputField in Lightning so that it re-fetches its values from the server (how we used to do it with VF)? I am well aware of the limitations associated with picklists ...
1
vote
2answers
3k views

How to render Address fields in Lightning components?

Is there any way to display an address field such as Account.MailingAddress on a custom Lightning component? I am overriding the New Account button with a custom Lightning component and I want to let ...
0
votes
2answers
80 views

Lookup field displays properly in Lightning App preview but not when component is added to page

I followed these steps to create a lookup field that works well in the Lightning App Preview. However, if I try to add this component to a page, the lookup field is no longer rendered at all. <...
1
vote
2answers
2k views

how to clear value of force inputField in lightning?

I have a custom component that creates a new Task record. I use force inputField that is bound to a lookup field in Task. I want to clear it's values if the user clicks cancel or save. <div class=...
0
votes
0answers
377 views

force:inputField displays in .app but not in .cmp

So I have multiple picklists I wish to dynamically display on my lightning component. But when it does not render at all on my component. I moved the code over to my .app and it displayed 100%. Im ...
5
votes
0answers
468 views

Lightning force:inputField with filter issue

I have a lightning component that uses the force:inputField element for a lookup. The lookup field has a filter applied to it. I have the filter field displayed on my component, but when I set the ...
2
votes
0answers
319 views

force:inputField pick list not rendering properly

When i use force:inputField for pick list type fields the rendering of the values are not happening properly. Code: <div class="slds-form-element slds-hint-parent slds-has-divider--bottom"> ...
0
votes
2answers
3k views

force:inputField “change” event not firing

I have the following line in my component: <force:inputField aura:id="locationField" value="{!v.newCase.Location__c}" change="{!c.addressChanged}"/> which creates an address selection field. ...
3
votes
0answers
677 views

How do you apply Lightning Design System CSS Styling to force:inputField?

I'm trying to use force:inputField so that I can get the picklist values on a picklist field of a custom object. If I preview the "sampleCreateRecordApp.app" the force:inputField does not have CSS ...
8
votes
1answer
3k views

Does force:inputField support dependent picklists?

Let's say I have two picklists bound to force:inputField elements like so: <force:inputField value='{!v.obj.Database__c}' aura:id='database'/> <force:inputField value='{!v.obj....
4
votes
0answers
958 views

Lightning Components - <force:inputfield> Not working for certain field types?

Is force:inputfield not working for certain field types? I've put together a simple Lightning component I'm finding the following: Picklists - Are rendered as disabled (this is an issue I'm aware of ...
4
votes
3answers
5k views

How do we pre-populate force:inputField in Lightning Component?

I'm trying to preset a Lookup field when my Lightning Component form loads, but the field is always showing as nothing selected, even though the value exists in the field itself. The code looks like ...