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

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
1answer
28 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
61 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
36 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
24 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
16 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
17 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
34 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
36 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
147 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
120 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
34 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
59 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
73 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
36 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
92 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
133 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
39 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
240 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
1answer
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
43 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
158 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
59 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
360 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
84 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
31 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}"/> ...
3
votes
2answers
11k 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
156 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
13k 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
876 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
61 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
704 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
132 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
30 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 "...
1
vote
1answer
1k views

Can't set the value of a lightning:inputField for a field of type User

I'm trying to set a default value on a lightning:inputField component. The fieldName references a User value. This is the code: <lightning:recordEditForm aura:id="recordEditForm" objectApiName="...
2
votes
2answers
608 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
769 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
121 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
204 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
711 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: <...
-1
votes
2answers
393 views

lightning:input onpaste not working

I want handle on event paste but I using onpaste It's not working <lightning:input type="text" aura:id="FName" value="Test" maxlength="25" name="f-name" label="First Name" required="true" onchange=...
1
vote
1answer
954 views

How to increase width of apex:inputfield for case owner field

Below is the simplest version of VF page where I want to increase the width of Case Owner input field: <apex:page standardController="Case"> <apex:form > <apex:inputField ...
0
votes
2answers
82 views

Cannot bind fields using InputField

I'm using an apex repeat to build a modal using a fieldset. The following works fine: <apex:repeat value="{!currentFieldSet}" var="C"> <apex:outputLabel >{!C.Label}</apex:...
0
votes
0answers
374 views

onChange event on apex:inputField fires only after losing focus

I have written a VF page having <apex:inputField> with a onchange method like this: <apex:inputField value="{!opp[field]}" onchange="resetValues()"/> The method resetValues is a ...