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
9 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
26 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
22 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
22 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
34 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
17 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
360 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
7 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
26 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
69 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
129 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
15 views

Inline help text not working in Visualforce Page when rendered in lightning experience

We are using a Visualforce page in the lightning experience. We have a strange scenario where when we redirect from apex class to this VF page, the inline help text of input fields are not visible on ...
0
votes
0answers
32 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
899 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
105 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
52 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
29 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
0answers
56 views

Passing Id of a record from apex:inputfield lookup to controller and not the record Name

I have a VF page with a table populated by a wrapper class and some lookup inputs above it. I've created a method to update a column value for all the table rows to match whatever is selected in the ...
0
votes
1answer
207 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
42 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
184 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
1k 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
159 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
94 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
2k 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
105 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
40 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
2k 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="...
1
vote
1answer
2k 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
30 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
384 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
35 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
132 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
606 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
2k 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
695 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
62 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
316 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
1k 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
402 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
946 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
80 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
589 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
2answers
4k 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 ...
-2
votes
1answer
1k 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
848 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
158 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. ...

1
2 3 4 5