Stack Exchange Network

Stack Exchange network consists of 174 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]

The tag has no usage guidance.

1
vote
1answer
28 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
20 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
15 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
25 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
325 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
72 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
391 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
19 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
218 views

how to get the value of lightning:inputField when the field is blank

I have a lightning:inputField for using the lookup field like this Customer__c is a lookup field in the object. cmp <lightning:recordEditForm aura:id="recordEditForm" objectApiName="Quote__c"> ...
0
votes
0answers
29 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
17 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
24 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
694 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
39 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
63 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:
4
votes
2answers
4k 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
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
328 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
38 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
124 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
77 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
21 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
29 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
851 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
322 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
552 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" > ...
0
votes
0answers
62 views

styleClass for a dependent picklist

I am having an issue getting my styleClass into a dependent picklist. Here is my visualforce mock up: <th scope="col"> <div ...
5
votes
1answer
517 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
50 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
922 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
131 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
478 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
207 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
537 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
70 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
217 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
148 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
75 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
289 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
146 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
300 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
86 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: ...
2
votes
2answers
269 views

ActionSupport action not firing when id parameter not set in URL

I've written a Visualforce page and controller intended to override both the New and Edit buttons for the standard Case object. I have an inputField for an Account lookup enclosing an actionSupport ...
0
votes
2answers
437 views

Make an inputfield readonly depending on a controller boolean variable

I have an inputfield in an apex page In my apex class there is a boolean variable depending on which this inputfield should be readonly or readwrite. I have tried using rendered. However that is not ...
1
vote
1answer
47 views

Fields getting wiped after one format error

We have a pretty lengthy visualforce page where consultants fill out their account plan. Quite a few fields are of type number -- also date, which is less problematic. If the user fills out 40 fields ...
1
vote
3answers
164 views

Bind sobject to html input element

Below is my code. I am trying to bind sobject to input tag but i am not able to do so. Any solutions? <table class="borderCls"> <aura:iteration items="{!v.fnns}" var="fnn" indexvar="...
1
vote
3answers
7k views

Input field to accept only numbers and the number can start with 0

I want the input field to only allow numbers and the number can start with 0 also. I tried using ui:inputNumber but when i click on check button for validation of input it deletes the 0 from start. ...