Questions tagged [inputfield]

InputField represents an editable input for a field on a Salesforce object based on field type. For example, if fieldName references a date value, then a date field with a date picker is rendered.

Filter by
Sorted by
Tagged with
0
votes
0answers
18 views

Avoid Auto focus on lightning input field of type Lookup

I have a Table that I populate with list of objects through Aura Iteration . One of the column is a lightning:inputField of type look-up , it is inside a lightning:recordEditForm. The problem is ...
3
votes
1answer
80 views

Issue in Finding Difference between Date's in LWC

Currently, I want to find a difference between two dates in months in LWC. I am getting a difference as 'Nan'. Here is the playground link Below is the screenshot for your reference
-4
votes
2answers
59 views

How to show default value in Lightning:input? [closed]

I want to show default value as 0.0 in lightning:input field on page load. I don't want it to be a placeholder.
0
votes
0answers
26 views

How to use application events for two different components

I want to make two separate components to display Opportunity field values and filters on separate component without parent-child comp relationship I don't want to use parent child component ...
1
vote
0answers
39 views

Visualforce Lookup field search icon not working on Salesforce Mobile App (Android)

I've a Visualforce Page overriding New & Edit standard buttons. On Salesforce Mobile App (Android) only, the lookup field search icon does not work. It throws users to login page and when they ...
0
votes
1answer
30 views

Is there a single documentation page that shows what all LWC lighting-input-field types look like?

I'd like to share with our designers the available "easy" input field options but haven't found a good reference link to give them. Is there one? (This Components reference is good for the overall ...
1
vote
1answer
164 views

How to change placeholder of lightning:inputField

I made look up search with lightning:inputField. search is available, but I want to change its placeholder. I mean that I want to set some text instead of '001'. <lightning:inputField fieldName="...
0
votes
1answer
149 views

Get field-name property on onchage event in lightning web component

I want to check on my custom onchange event which fieldName is being changed but when I try to retrieve info via event.detail.fieldName or event.detail.field-name it gives me undefined. js: ...
1
vote
0answers
25 views

Color of field Error in VFP

I am using the Standard field Email of the Standard object Contact in a VFP. In Salesforce when I enter an invalid email address, I get the error message like this However When I enter an invalid ...
0
votes
1answer
39 views

Onchange picklist value not showing dependent picklist values

I am working on dependent picklist. I have a parent object on select Parent record in the first picklist I need to get all related child record in the 2nd picklist. This is working fine. But when I ...
0
votes
2answers
18 views

How to target the css for inputfields

I have a lightning component where the fonts a returning white which makes it difficult to read. I read some solutions deinstalling a calendar or reinstalling chrome which did not work in my case so I ...
1
vote
1answer
32 views

Accounts are not updating when I choose an account type from the dropdown box

I think I need a pageReference for the updateRecordList. Right now it runs but it won't display the accounts with the selected account type. Can anyone explain to me whats wrong? and how pageReference ...
0
votes
1answer
43 views

Datepicker not working on Visualforce Page When standardStylesheets=“false”

I want to disable standard stylesheets for a Visualforce page, but when I disable it, apex:inputfield does not provide date picker for date fields. <apex:page standardcontroller="Opportunity" ...
0
votes
1answer
83 views

Why does Visualforce inputField using html-disabled = false still disable the field?

In my VF page I need to disable an inputField based on a boolean condition set in my controller. If I add the html-disabled option to the inputField it disables the field, regardless of what I set the ...
0
votes
1answer
382 views

How can use custom currency in a input field?

I'm using LWC, but I can't set custom currency in the lightning-input, using type number or currency. I also try to use lightning-input-field of type currency, but I found in documentation: ...
0
votes
2answers
175 views

Align vertical label of lightning:inputField in large screen

I have a problem with lightning:inputField, in my page I have a mix of lighting:input and lightning:inputField. When I dispaly inputField in large screen, the label is horizontally aligned with the ...
0
votes
1answer
39 views

Creating text box with magnifier to search and select account from org

I am trying to develop a Visualforce page to search account and select from the org. Like we select an account on the contact. Need something like this on the page: Controller: public with sharing ...
0
votes
0answers
68 views

Dependent picklist not working when rendered in output panel of VisualForce Page

This is a small snippet of a bigger scenario. Here I have an empty div where I dump the full div section of the reRendered output panel. I am doing this so, because in my main codebase we have a ...
-1
votes
1answer
84 views

Validating input and throwing error

So I have this field input in my UI, I need it to throw an error if it is left blank, but it is not. This is my code <div class="slds-text-heading_medium slds-align_absolute-center"> &...
0
votes
2answers
50 views

Set a value on a field of a object with lightning component

I develop a lightning component where I use a object as an attribute. In my lightning controller, I would like to set a value on that object but it doesn't work, nothing happened.. This is my code: ...
2
votes
0answers
155 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
1answer
219 views

How to send date from web to lead to datefield salesforce

I try to pass a date from a web2lead form to a date field, but the field stays empty. Travel date in: <span class="dateInput dateOnlyInput"> <input id="00N1t00000K2yXV" name="...
0
votes
1answer
46 views

InputField Conditional Font Styling

I have a requirement to conditionally style the font for a single inputfield based on the User's profile, however, below statement does not appear to be rendering properly. Is this possible using ...
3
votes
1answer
301 views

How to clear the filename and value of apex:inputFile

I have and apex:inputFile tag where a user can input a filename to upload on a visualforce page. I have a javascript function which checks and alerts if a filesize is too large. After the Alert the ...
1
vote
2answers
1k views

Lightning component focus on lightning:inputField

I have a <lightning:inputField aura:id="inputField1"> in a modal window, and I want to focus on this field when the modal opens, so that the user doesn't have to use their mouse or tab to set ...
0
votes
1answer
57 views

How to Dynamically update input field value?

When I enter mobile number in mobile field how to auto update in Phone field same Mobile number without submitting any button in page using Script/jquery Here Mobile is Parent(Org__c Object) field. ...
1
vote
1answer
253 views

Cannot resize width of Text Area on click and drag in LEX

I am using visualforce page with inputfield, I have field segment which is of type 'long text', that corner button on down right corner of input field(refer above image), we can click and drag both ...
2
votes
1answer
65 views

Dynamic sObject Lookup field throws “SObject row does not allow errors” if lookup is entered record name that do not exist in org

Feels like I'm not having a good day at all with platform :-) ... another day and another issue with platform dynamic sObjects :( So I'm trying to create an sObject record dynamically from a VF page. ...
3
votes
2answers
2k views

How to add lightning:input to lightning:recordEditForm

I'm building out a question answer component where certain answers will have specific input types and it would be nice to set some key parameters of the input field yet still use the lightning:...
0
votes
1answer
405 views

Html-placeholder does not work with input Field

I have a picklist in Salesforce that I am displaying on visualforce page. The picklist by default shows --None-- as an option. Instead of displaying None, I want to display Please Select or maybe ...
2
votes
1answer
2k views

RecordEditForm: Reset inputfield after successful submit

I have a Lightning RecordEditForm on a page that I'd like use multiple times. After a successful submit I want to clear the user's entries to allow the form to be reused. I have been unsuccessful at ...
0
votes
1answer
115 views

Visualforce inputField Isn't Saving to Variable

Here's the piece of my markup that includes the inputField: <apex:form > <apex:pageBlock mode="edit" rendered="{!reportAppRendered}"> <apex:inputField value="{!...
1
vote
1answer
32 views

VF page column not rendering correctly

I have the following code(omitted everything else): <apex:column headerValue="try1" rendered="{! s.Quote.RecordType.Name == 'Standard'}"> <apex:inputField value="{!s.Quantity}"/> ...
4
votes
2answers
15k 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
211 views

Values from input field are not updating the custom object values.

I have the code below. Everything works until it comes to update the the values inside the custom object. I have looked through the debug logs and the required record is also being selected and ...
6
votes
3answers
15k views

Lightning:input type=“date”: how to change the date fomat - Summer'18

I'm trying to change date format of this component but I dont find any attribute (like ui:inputDate has) to change the date format. <lightning:input type="date" name="input8" label="Dates" value="...
0
votes
1answer
1k views

lightning:inputField User lookup field get a user id value on the controller

<lightning:recordEditForm aura:id="recordViewForm" onload="{!c.showRequiredFields}" recordId="{!v.recordId}" objectApiName="HolidayAction__c" onSubmit="{!c.clickCreate}" <lightning:messages/&...
0
votes
1answer
72 views

Show selected row in alert

I have to show the selected row in an alert. Can someone please help me? Below is the page code snippet. <tbody> <apex:repeat value="{!contactList}" var="contact" id="loop"> ...
-2
votes
2answers
944 views

why validation does not work in my code?

I have only 1 input in my form which is why the reduce method doesn't work but how to validate the form without this method.Already a lot of things tried but the result is not achieved...... My JS ...
2
votes
0answers
141 views

lightning:inputField won't save null value into numeric field

I use lightning:inputField for a numeric field inside the lightning:recordEditForm. When a user tries to delete a number from that field, it shows a validation error "cannot be parsed as a number, ...
0
votes
2answers
31 views

Carry Over Values from Account Info Page [closed]

I have created a controller to be able to edit person accounts, however I am using inputText vs inputField because of other customizations. How can I autopopulate person account fields into my "...
0
votes
0answers
30 views

Can´t see fields to edit in apex:inputFields

I have problem with writing values to custom object in VF controller whitch i include to apex:page. I can´t see box to write values in my apex:form. I have apex:inputfield, but i can only see it´s ...
0
votes
1answer
28 views

VisualForce InputField values not being passed into Controller

I am having trouble passing InputField data from a visualforce page into an apex controller. I feel like I have gone through 100 posts but nothing has helped me out. The goal here is to pass a new "...
2
votes
2answers
663 views

Is there a Lightning component for inputRichText - with image upload?

I'm looking for a lightning component that I can use that has the image upload capability. Similar to the Chatter WYSWG: Note: I've used the lightning:inputRichText (Beta) and that doesn't have the ...
0
votes
3answers
1k views

Getting selected value from <apex:inputField> (dropdown) to a controller variable

I am working on a custom VF page for a case screen with extension controller class in use. <apex:actionRegion > <apex:inputfield label="Action" value="{!case.Action__c}" id="Action" > ...
5
votes
1answer
831 views

Lightning currency input component that respects the records IsoCode

I was so used to Visualforce fields that display a currency value in the CurrencyIsoCode of the relevant record that it took me a while to understand why in Lightning wrong Iso Codes (those of the ...
0
votes
1answer
152 views

Removing background auto fill color from inputSelect

So I have a ui:inputSelect tag and when I use auto fill, the background color changes to yellow. How do I get rid of this feature and just keep the white background.
1
vote
3answers
2k views

For what reason there are force:inputField and lightning:inputField if both of them correspond to Lightning Components?

In a Lightning Components Developer Guide there are two inputFields - [one] in a force namespace and a [second] in a lightning namespace. Looks like both of them serve the same purpose (being an input ...
1
vote
0answers
216 views

Input Field Lookup not working after Spring 18

After the Spring 18 release suddenly The Input field (Type lookup) stop working. When I click on lookup icon nothing happens. This issue coming in iPhone/iPad Salesforce App. I try to reproduce this ...
0
votes
0answers
764 views

output picklist field in Lightning component

I would like to display a field (picklist) in my lightning component and then get the users value and apply some logic to it. At the moment I have hard coded the picklist as seen below: <...