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 [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.

0
votes
0answers
14 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 ...
0
votes
1answer
24 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
24 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: ...
1
vote
0answers
24 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
42 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
18 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
128 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
354 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
24 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
46 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
40 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
871 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
198 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
996 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
26 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="{!...
0
votes
0answers
32 views

Make field required by using javascript in Visualforce page

I have a requirement where I store a value in a javascript variable, and based on that JS variable I want to make an inputField required. I referred the below link, but javascript was not used. how ...
1
vote
1answer
23 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}"/> ...
0
votes
0answers
35 views

Look up showing as inputField in SF1

I have a VF page with look up field which is now migrated to lightning experience and working fine. However in SF1 the lookup field shows up as a plain inputField. After googling I now know the lookup ...
2
votes
2answers
3k 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
90 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 ...
0
votes
0answers
85 views

Display & Limit Character Count for long text input in a Visual Flow Screen (without Visualforce)

Can anybody suggest a way to display (and limit) the character count for a long text input field in a Visual Flow screen, WITHOUT needing to embed the flow in a Visualforce page? Screenshot example:
5
votes
2answers
8k 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="...
-1
votes
0answers
19 views

Is there any way to put a lightning inputField in the HIF at once as shown in the picture below?

Is there any way to put a lightning inputField in the HIF at once as shown in the picture below? We want to embed the Lightning inputField and want it to work in the getHolidayActionList class below. ...
0
votes
1answer
524 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
46 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"> ...
-3
votes
2answers
313 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
99 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
27 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
22 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
424 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
808 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
661 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
75 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
1k 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
164 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
612 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
286 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
718 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
75 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
268 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 ...
0
votes
0answers
177 views

apex:inputField not correctly rendering

I use some apex:inputField components in my visualforce page but suggestion menu does not render correctly: This is my code: <apex:page standardController="Campaign" extensions="...
1
vote
2answers
1k views

Disable inputField conditionally

As the apex:inputField doesn't support disabled attribute (but apex:inputText does), I was using arbitrary attribute html-disabled to accomplish this. But, I was wondering if we can add a condition or ...
0
votes
1answer
96 views

reproduce apex:detail from id entered in inputfield

Normally with a standard controller you enter the ID in the URL to reproduce for example the apex:detail. Is this also possible by not entering the ID in the URL but trough and input-field?. What I ...
1
vote
1answer
366 views

inputcheckbox not showing in visualforce page

I have this visualforce page where I show several fields as inputfield and picklist which are working fine. I cannot get the inputcheckbox showing up in my visualforce page am I missing something see ...
1
vote
1answer
171 views

HTML input element is not working in lightning component

Currently facing an issue while integrating my reactJS component having input type="text" in salesforce lightning component. I build applications/components using Angular/ReactJS,So I am fairly new ...
0
votes
2answers
347 views

Dynamic custom labels and ui:inputSelect

I need dynamically show drop down list with countries. My code: Controller: public with sharing class CountryCtrl { @AuraEnabled public static List<CountryUtils.CountryProperty> ...
0
votes
1answer
1k views

force:inputField error: AuraRuntimeException: Error Retrieving Field

I am getting the above error with this component, which is used as an action override on the Account object: <aura:component implements="lightning:actionOverride,force:hasRecordId,flexipage:...
0
votes
2answers
91 views

Which is the best way to update VF page input fields using Javascript? Why?

I have seen both of these being used to update VF page inputs in Javascript dynamically. Approach 1: document.getElementById('{!$Component.thePage.theForm.theField}').required = true; Approach 2: ...