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
13 views

How can I change the type of field using <lightning:inputField> aura component

How can I change the type of field using <lightning:inputField> aura component? For example, I create a custom picklist of strings field at Salesforce and I have to show them on aura component ...
0
votes
0answers
14 views

Time dropdown will not disappear after I select a time

I am using apex:inputText and time ui-timepicker-input in order to allow the user to enter a specific time onto my visualforce page. Currently, when I select a given time, the time appears within the ...
0
votes
1answer
115 views

Flow get user input into custom component

I have component and need to use here user input from flow screen. So i have a text field with api name 'Request' and want to use input from that field in my custom component, that replaces default ...
1
vote
0answers
168 views

LWC Input Address not populating Province [closed]

I'm trying to implement a standard lwc input address in a custom LWC component. https://developer.salesforce.com/docs/component-library/bundle/lightning-input-address/example. When I search an Italian ...
1
vote
1answer
223 views

lwc input-field autocomplete="off"

I know that on lightning-input you can set autocomplete="off" to deactivate browser autofill feature. Now I am looking for something similar to this on lightning-input-field. Has anyone ...
0
votes
1answer
29 views

Can't validate blank input in flow [duplicate]

When I am doing input validation using formula ISNULL({!date1}) This formula is working as expected but if I use NOT(ISNULL({!date1})) or and chain formula validation is not working. Edit: I have 2 ...
0
votes
1answer
83 views

How do you update a text field based on a Picklist field but still let the text field be editable? [closed]

I'm new to SF so apologies as I imagine this question has been asked before but each answer I read I unfortunately "don't get it". I have a normal picklist field (Picklist A), where the user ...
0
votes
0answers
24 views

How to insert data text field [number datatype] to database using javascript

below is my interface. My question is when the user insert a number in the field, may I know how to posh it to the database? Here is my code {!REQUIRESCRIPT("/soap/ajax/20.0/connection.js")}...
0
votes
0answers
12 views

Show in UI own record in aura component

I have a custom lightning component and I would like to show one field like this: A default record appears on the input field. In my case, my aura component shows just current Record Id, like this: ...
0
votes
1answer
28 views

Extra textbox before input component

It seems that there's an extra textbox that I can type into, but I'm not sure what's causing it in the code. I only get to this extra textbox when tabbing through elements on the page. I have added ...
0
votes
1answer
134 views

Is it possible to use lightning:inputField with fieldName RecordTypeId on lightning:recordEditForm?

Is it possible to use lightning:inputField with RecordTypeId as fieldName. I want to create form that will dynamically change his own fields according to selected record type? I wonder that I need to ...
0
votes
1answer
45 views

I'm using a dynamic query to fetch records, how to treat '%' if given as input in like query to be treated as a string and not another wildcard char?

I have a LWC component which takes 4 input from the user and fetches the matching records based on the conditions in the query. In the below apex method to fetch records, the parameter 'c' which is a ...
0
votes
1answer
120 views

How to draw fields of different types using for:each in LWC

I'm trying to draw a set of different fields (with type text, number, picklist and other) using for:each, but I get all identical fields (they differ only in names and labels). How can this be fixed? ...
1
vote
0answers
49 views

Multi-picklist width collapses in Lightning with SLDS component loaded

I'm converting an org to Lightning and have this markup in a Visualforce page: <apex:inputField value="{!classInstance.opportunity[field]}" required="{!IF(isSaveOnly,...
2
votes
1answer
2k views

How to get old/previous Value which entered in input text field with onchange() event in LWC?

How to get old/previous Value which entered in input text field with onchange() event in LWC ? please help
0
votes
1answer
23 views

How to exclude leads from an imported .csv file regarding to their job title or any other attribute?

Hello! I am trying to automate the lead importing process to save some time. Usually what I do whenever we have a list of participants to virtual events (.xlsx), is a VLOOKUP command to find duplicate ...
0
votes
0answers
9 views

need to edit css in ui:inputDateTime

I want to edit the width of the input boxes provided by ui:inputDateTime one by one. You can do it to the two fields at the same time by adding a class to the html tag but I didn't found how to edit ...
0
votes
2answers
30 views

Problems with building a custom controller in Salesforce

This is my first time having built a custom controller, and I in a revolving door of errors: This is the code with which I begin, and this DOES work: apex: <apex:page controller="...
0
votes
1answer
161 views

How to align <apex:inputField> with CSS?

I am styling <apex:> tags with CSS but can't seem to align the inputFields correctly as they won't respond to padding, float:, or margin:. VF Snippet <!-- Form starts --> <apex:...
0
votes
1answer
200 views

Cannot edit checkbox (input field in User site guest)

I have a User site guest which displays fields of an object For example, if it's a checkbox If I do <apex: inputField value = "{! loggedC.Expression_rens_F1__c}" /> The checkbox ...
0
votes
0answers
71 views

Issue with PageBlockSection alignment in lightning experince

I have Vf page which is supposed to be used in lightning experience. I changed the styling using standard attribute lightningStylesheets="true". But when using PageBlockSection with one ...
0
votes
1answer
2k views

Error: Received exception event aura:systemError from server

I have create a file upload wizard (using lightning:input type="file") in which am trying to upload file upto 5MB. Am able to successfully upload file till 2.8MB but not sure after that am ...
0
votes
1answer
229 views

Display lightning-icon in lightning-input and add onclick action

I'm trying to add icon inside input and that's fine, but when i try to add some action like onclick it doesn't work. On front when i try to click on the icon i can not do this, cuz input hover it ;/ &...
2
votes
1answer
62 views

Invalid number error on VisualForce page apex inputField

After the Winter 21 update I've come across an issue in a clients environment where when entering a negative value into an apex input field returns an invalid number error. The debug log prints '|...
0
votes
1answer
46 views

How to format enterprise number for Belgium businesses?

How can I put in place a control on an "Enterprise number" (basically the national ID for businesses) field to respect the format enforced by Belgium fiscal law?
0
votes
1answer
442 views

How do I add fieldinput values to an object in Lightning?

Im working on a component where a table is generated by data entered into 3 input fields (Year, Make and Model). I have a function where the user's inputs are assigned to their corresponding variable ...
0
votes
0answers
64 views

VF - apex:inputField does not show the lookup icon with master-detail relationship

When I add an apex:inputField for a master-detail relationship it does not allow you to choose a parent via the lookup icon - it only shows the name of a parent if I append a record ID in the URL. If ...
0
votes
1answer
295 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 ...
1
vote
1answer
2k views

How to pass lightning-input-field value as a parameter to controller class method in Lightning Web Component

Requirements: I am building a Custom Mass Transfer Records functionality where Based on Object Name and Owner, I want to display List of Sobject Records owned by user. Once List is displayed, I want ...
0
votes
0answers
206 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 ...
1
vote
2answers
133 views

How to make field mandatory based on another field without javascript?

I am trying to achieve a functionality where GST no field should be mandatory when IST flag is set to yes.Below piece of code didnt work for me . Also I cannot use Javascript for some reason <div ...
3
votes
2answers
2k 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
3k 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.
1
vote
0answers
143 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
43 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 ...
2
votes
1answer
3k 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="...
3
votes
1answer
3k 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
32 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
433 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
38 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
156 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
796 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 ...
1
vote
2answers
3k 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
806 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
66 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 ...
-1
votes
1answer
437 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
2k 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
449 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
1k 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="...

1
2 3 4 5