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
1 answer
25 views

InputField inside of a repeat not updating or saving changes

I have been monitoring strange behaviours in my page since I put the pageBlockTables in repeat and te columns of these tables inside a repeat too. hte recors I try to create appears on my page and I ...
user avatar
  • 23
0 votes
1 answer
15 views

How to reset page on cancel button using RecordEditForm in salesforce aura components

Cancel button is not working while using recordeditform
user avatar
0 votes
0 answers
20 views

How to remove the hex-code box from the lightning-input-field when type="color"

In salesforce, we use the Lightning input field that has type=color and shows the colour picker with its hex code. <lightning-input label="colour" type="color" value={data....
user avatar
0 votes
0 answers
37 views

lwc date field calendar year part missing (not able to select year)

<!-- 1st row start --> <div class="slds-col slds-size_1-of-1 slds-medium-size_6-of-12"> <label class="slds-form-element__label"> ...
user avatar
  • 1
0 votes
0 answers
17 views

How to hide an apex:outputLabel along with the apex:inputField it's associated with

Given the code: <apex:pageBlockSectionItem> <apex:outputLabel value="{!$ObjectType.CustomObject__c.Fields.CustomField__c.Label} :" /> <apex:...
user avatar
0 votes
0 answers
33 views

lightning-input LWC zoom in on mobile

I have an LWC form inside a site as an iframe. The LWC form contains basic information for registration. From computer - working just fine. But when I'm trying to open my site from my mobile (chrome ...
user avatar
  • 959
0 votes
0 answers
40 views

lightning:recordEditForm not rendering when user has read-only data-level security

I have a custom object that is a child of Opportunity so its data-level security is controlled by its parent (Opportunity) sharing settings. All of my user Profiles have Object-level permissions set ...
user avatar
0 votes
0 answers
16 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 ...
user avatar
0 votes
0 answers
18 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 ...
user avatar
0 votes
1 answer
405 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 ...
user avatar
  • 41
1 vote
0 answers
393 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 ...
user avatar
1 vote
1 answer
846 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 ...
user avatar
  • 1,532
0 votes
1 answer
113 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 ...
user avatar
0 votes
1 answer
500 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 ...
user avatar
0 votes
0 answers
89 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")}...
user avatar
0 votes
0 answers
18 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: ...
user avatar
  • 155
0 votes
1 answer
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 ...
user avatar
  • 25
0 votes
1 answer
278 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 ...
user avatar
  • 645
0 votes
1 answer
89 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 ...
user avatar
0 votes
1 answer
228 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? ...
user avatar
1 vote
0 answers
95 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,...
user avatar
  • 237
2 votes
1 answer
4k 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
user avatar
  • 193
0 votes
1 answer
26 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 ...
user avatar
0 votes
2 answers
44 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="...
user avatar
  • 1
0 votes
1 answer
344 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:...
user avatar
0 votes
1 answer
302 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 ...
user avatar
  • 49
0 votes
0 answers
111 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 ...
user avatar
0 votes
1 answer
3k 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 ...
user avatar
0 votes
1 answer
401 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 ;/ &...
user avatar
  • 135
2 votes
1 answer
72 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 '|...
user avatar
  • 21
0 votes
1 answer
76 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?
user avatar
0 votes
1 answer
606 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 ...
user avatar
0 votes
0 answers
75 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 ...
user avatar
0 votes
1 answer
497 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 ...
user avatar
1 vote
1 answer
3k 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 ...
user avatar
0 votes
0 answers
227 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 ...
user avatar
  • 1
1 vote
2 answers
155 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 ...
user avatar
  • 13
3 votes
2 answers
3k 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
user avatar
-4 votes
2 answers
4k 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.
user avatar
  • 750
1 vote
0 answers
158 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 ...
user avatar
  • 5,606
0 votes
1 answer
44 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 ...
user avatar
  • 130k
2 votes
1 answer
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="...
user avatar
  • 165
4 votes
1 answer
5k 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: ...
user avatar
  • 771
1 vote
0 answers
40 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 ...
user avatar
0 votes
1 answer
462 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 ...
user avatar
  • 634
0 votes
2 answers
20 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 ...
user avatar
  • 2,090
1 vote
1 answer
39 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 ...
user avatar
  • 91
0 votes
1 answer
192 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" ...
user avatar
  • 10.6k
0 votes
1 answer
972 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 ...
user avatar
  • 1,377
1 vote
2 answers
4k 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: ...
user avatar

1
2 3 4 5