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.

44 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
983 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
1answer
2k views

Controller variables are not retrieving data from bound inputfields

I'm working on an interface that allows users to create activities directly from a list of records of a custom object, so I created a wrapper class that contains said object and a task, in order to ...
3
votes
0answers
2k views

Lightning Components: Using <force:inputField /> on a Lookup only works partly and use slds-input class override with default

Using a <force:inputField value="{!v.account.ParentId}" /> seems to have flaws running in a Lightning Community Issues Rendering: wrong/missing styles Link "Find more results" does not work ...
2
votes
0answers
266 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 ...
2
votes
1answer
85 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. ...
2
votes
0answers
148 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, ...
2
votes
0answers
225 views

Visualforce apex:inputField and apex:detail with SLDS: on the roadmap or workaround?

Long waiting, but seems still no support for apex:inputField and apex:detail in SLDS. https://www.lightningdesignsystem.com/platforms/visualforce/ Does anyone know if that's on the roadmap or any ...
2
votes
0answers
75 views

Why does this input fields conflict with each other?

I have two components that are conflicting with each other: component1: <apex:component > <apex:attribute name="cntact" description="A Contact for the component." type="Contact" ...
1
vote
0answers
61 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 ...
1
vote
0answers
28 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 ...
1
vote
0answers
231 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 ...
1
vote
1answer
229 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 ...
1
vote
0answers
525 views

How workaround size of image when take photo from camera in Lighning

I have application which should take using android/iPhone and send to SF backend. But when try to send image I fetch error: Received exception event aura:systemError from server and: And my code: &...
1
vote
1answer
2k views

problem with lightning:input

i have a problem with the tag <lightning:input type="number">. I want to insert max 3 integer and 3 decimal (999,999 or 1,0), i try to use this: <lightning:input type="number" step="any" ...
1
vote
1answer
378 views

How to use list variable in pageblock table without using var attribute

i have a VF page , contains pageblock table(wrapper) , if the data is available for the filed in column then will show output field , if not will show input field , because user can enter data , then ...
1
vote
0answers
577 views

Lightning Components - CSS classes not being updated on child components

I'm trying to create a simple section on a lightning component which will show either a force:inputfield or a force:outputfield depending on the "mode" attribute of the component. If the mode ...
1
vote
0answers
127 views

Unless the input field is rendered this code does not work - not sure why?

I have some VF code that looks like this: <apex:outputPanel styleClass="grey" layout="block"> <apex:pageBlockSection title="Flexible Pricing" columns="2" id="FlexPricing"> ...
1
vote
1answer
374 views

Rerender after inputfield is filled

Right now, I have a VF page in which I need to pass at least one object to get a list from SF. The context: An application that is used to monitor bikes that are used by clients going from one point ...
1
vote
0answers
55 views

Standard DatePicker always set empty

We have some date fields in VF pages which were working fine. Suddenly some of them are not working. When user select the date from date picker, always it sets empty string to the textbox. ATM don't ...
1
vote
0answers
1k views

Date and Number locale problem on html5 input type=date/number

Question Is there any chance to send data in generic date format (yyyy-mm-dd) in standard save method? I need to user apex:input type="date" (or number). But Salesforce save method is not ...
1
vote
2answers
162 views

Is there a way to get the label of a value for an inputfield lookup in visualforce page?

I have a line that says: <apex:inputField required="false" value="{!sobject[fieldName]}"/> For a field that is a look up. In Salesforce, if the field is a look up the input field will also ...
0
votes
1answer
33 views

Conditionally disabling an editable field in lightning Datatable

I have a requirement that an editable field in Datatable should be editable on certain conditions for example lets say, i have a field Disable_Action__c which is a formula field , when this field ...
0
votes
0answers
13 views

Get all lightning inputs with given type

Is it possible to access all of the lightning inputs of given type? I mean something more generic than getting them by aura:id
0
votes
0answers
39 views

Dropdown is not getting close in the Lightning Input box in LWC

Hi I have created the lightning input box which contains some value as a drop down but when i am clicking outside of the drop down anywhere on the page the values which are appearing as a drop down is ...
0
votes
0answers
50 views

Reduce lightning:input text form height

I have a lightning:input form inside the body of a table tag in order to let the user insert some text given certain circumstances component code ..... <table class="slds-table slds-...
0
votes
0answers
27 views

Is there a way to have a lightning-input field with type=number and without the currency symbol?

Is there any way in which we can have a lightning-input field behave like an input field with type=number and formatter=currency but without having the currency symbol in front of the amount? One way ...
0
votes
0answers
27 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 ...
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 ...
0
votes
1answer
32 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 ...
0
votes
1answer
115 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
0answers
31 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
0answers
844 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: <...
0
votes
0answers
456 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
266 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="...
0
votes
1answer
165 views

How to display the field using javascript?

I have 4 fields: 1)Gender__c 2) Date_of_birth__c 3) Age__c 4) Field4__c My condition is: If (Gender__c='Female' & Age__c>12) Then display the field4__c. I tried with the following code, It is ...
0
votes
1answer
171 views

Why Salesforce Standard Lookup Auto-Completion not working when Visualforce Page has No Header showing

Is there a way to enable standard Salesforce Lookup Auto-Completion in <apexinputField /> binded to an sObject Lookup Relationship field, when Visualforce Page is set to hide header via ...
0
votes
0answers
136 views

Lightning iteration does not accept inputText values

I have the below markup in my Lightning component. <aura:attribute name="items" type="InventoryAdjustWrapper[]" description="Items" access="public" /> <!-- <aura:attribute name="items" ...
0
votes
0answers
384 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 ...
0
votes
1answer
113 views

How to handle passing field values when immediate attribute is used in commandButton

I have a situation in my code where I need to validate input fields when a user clicks the "Save" button. I have other commandButtons on the page, one specifically that copies the values of an ...
0
votes
1answer
141 views

value not updating from upsert

when click on edit outputlink text show in inputfield work fine but when save record its create new record instead of updating. how can i update record if id is already exists. my whole code of class ...
0
votes
1answer
24 views

custom obj which is list to Opportunity (Look up Relationship).costom obj when click check box automatically update the opportunity Handoff true

trigger UpdateHandoffAttached on topx__c (after insert, after update, after delete) { List<Opportunity> listoppUpdate=new List<Opportunity>(); List<Opportunity> listopp=new List<...
0
votes
1answer
356 views

Pass value of inputfield to controller without binding it to any object

I a div popup where there is an input field <apex:inputfield id="CommentDate" value="{!AModel.dateTimeofComment}"/> <apex:commandButton action="{!AModel.saveComment}"...
0
votes
0answers
697 views

Pass a value from parent page to popup to controller

I have the following piece of code in a component <apex:pageBlock id="Panel"> <apex:pageblocktable value="{!Model.PAList}" var="pA"> <apex:column width="28" rendered="{...
0
votes
2answers
96 views

display fields from table and display as a textfield,with condition

I have fetch the data using query from apex.from two obeject with look up relation query is setCon = new ApexPages.StandardSetController(Database.getQueryLocator([SELECT ProgramName__c, ...