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
-3 votes
1 answer
40 views

Width of input fields is different between two orgs - DEV and PROD see screenshots attached

I am trying to figure out how to make the width longer for some input fields on a record I am trying to create in PROD. See screenshots attached of the difference. enter image description here Let me ...
Chantel's user avatar
0 votes
0 answers
442 views

lwc component there is search button, i want to remove that and i have a input field search should happen in the input field

<template> <template if:true={hasAccess}> <div class="slds-box"> <lightning-card title="Report Folder Sharing" icon-name="...
niranjan vl's user avatar
0 votes
1 answer
297 views

Method to choose when field is required LWC

Hello everybody I am currently working on a LWC form where I have some fields like inputs, comboboxes... In a combobox field when the user chooses, for instance the option A, an other lightning-input ...
TechGuy's user avatar
  • 97
0 votes
1 answer
46 views

Issue while passing inputfield value from vf to custom controller

I have a VF page through which upon selection it is creating an Agreement record. As per the current implementation record is created successfully but inputfield value is not getting passed to the ...
Snehal's user avatar
  • 35
1 vote
1 answer
1k views

Vertical Alignment of Button in Grid Column

In my Lightning Grid one of the columns contains an Input Field and the one next to it contains a button. Ideally I would like the button icon to align vertically with the input field and horizontally ...
Jeff Callahan's user avatar
-1 votes
1 answer
436 views

today Datetime as default in lightning-input type="datetime"

Hello everybody I amd trying to get today's datetime in tha next field: The problem is that I am not getting the HH:mm I have the next .js code: dateval; get dateValue(){ if(this.dateval == ...
user avatar
0 votes
2 answers
1k views

Align button with inputs LWC

Hello everybody I am trying to align the next button with the inputs fields but I am not being able to do it. I have tried everything I can imaging but I cannot solve this issue. Could anybody help me?...
user avatar
0 votes
1 answer
1k views

Populate input field with data LWC

Hello everybody I am currently working on a Flow that receives the Id from the record where the LWC action is and pass it to the LWC. The LWC is a form that shows some lightning-input and lightning-...
user avatar
1 vote
1 answer
389 views

Update Toggle Switch from js handler LWC

I've an Input toggle field which needs to be updated from sessionstorage. <lightning-input data-id="toggle1" type="toggle" onchange={changeToggle} label="Record Exists"...
Anurag's user avatar
  • 2,206
0 votes
1 answer
297 views

How can I set values in a list from rows (input field) that are added or deleted dynamically?

First I have one row. On 'and' button I added two more. I want to get a list of values from input fields. How can I do this? from .html file <template for:each={itemList} for:item="item" ...
Maria's user avatar
  • 25
0 votes
1 answer
190 views

Create section when button clicked

Hi everybody I am trying to create a LWC that contains a Documents section like this one: In the first part I have two inputs the left one called 'Type of document' and the other is 'URL Direction'. ...
user avatar
0 votes
1 answer
321 views

Is it possible to use lightning-input as button-icon that display calendar above?

I have standard lwc lightning-input type="date" that looks like this: And what I want to do is a button icon with the same functional, but without input field, just button with dropdown ...
Max Sh's user avatar
  • 1
0 votes
1 answer
124 views

Visualforce -<apex:inputField> not displaying values when in <apex:pageBlockTable>

I am trying to display a form wrapped in a table with inputfield but it does not return any value although the console says there is no error with my code. Please see my code below; <apex:page ...
Afonja's user avatar
  • 3
0 votes
2 answers
10k views

Adjust the width of input field type text in LWC

<div> <lightning-input type="datetime" name="input5" label="Start Date:" value={earliestDate} min={minEndDate} max={maxEndDate} onchange={handleDateChange} ...
SfdcBat's user avatar
  • 4,751
0 votes
2 answers
1k views

Clear custom input text field

i have a custom search bar created using LWC in wich i can write something, but i have 2 problems: 1: I can't figure how to make a clear button that reset what it is inside the input search bar if the ...
MashaMasha's user avatar
1 vote
1 answer
82 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 ...
Alexis's user avatar
  • 109
0 votes
1 answer
51 views

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

Cancel button is not working while using recordeditform
sandhya 's user avatar
0 votes
0 answers
109 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:...
Shaolin Dave's user avatar
0 votes
0 answers
48 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 ...
Debora RIbeiro's user avatar
0 votes
1 answer
959 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 ...
Terdivi's user avatar
  • 51
1 vote
0 answers
1k 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 ...
Mike Thompson's user avatar
1 vote
2 answers
4k 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 ...
Damecek's user avatar
  • 1,893
1 vote
1 answer
2k views

Can't validate blank input in flow

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 ...
Jaydeep Godara's user avatar
0 votes
1 answer
2k 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 ...
trustnoone's user avatar
0 votes
1 answer
42 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 ...
Greg's user avatar
  • 25
0 votes
1 answer
775 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 ...
Grzegorz Połuch's user avatar
0 votes
1 answer
161 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 ...
Abhinav Gupta's user avatar
0 votes
1 answer
562 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? ...
Valentin Romanov's user avatar
1 vote
0 answers
185 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,...
isherwood's user avatar
  • 432
2 votes
1 answer
14k 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
Sab__Dev's user avatar
  • 213
0 votes
1 answer
42 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 ...
user93643's user avatar
0 votes
2 answers
135 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="...
PeterF's user avatar
  • 1
0 votes
1 answer
958 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:...
SpicyPat's user avatar
0 votes
1 answer
564 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 ...
arnaud's user avatar
  • 104
0 votes
0 answers
211 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 ...
Pankaj Andhale's user avatar
2 votes
1 answer
8k 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 ...
user3012372's user avatar
0 votes
1 answer
1k 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 ;/ &...
artist's user avatar
  • 135
2 votes
1 answer
120 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 '|...
Kane's user avatar
  • 21
0 votes
1 answer
345 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?
Philippe Soweid's user avatar
0 votes
1 answer
1k 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 ...
ButtonPusher's user avatar
0 votes
1 answer
111 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 ...
patriciajlim's user avatar
0 votes
2 answers
1k 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 ...
Mohammed Aiyaz's user avatar
1 vote
1 answer
4k 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 ...
SFDCDJ's user avatar
  • 1,814
0 votes
0 answers
398 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 ...
Allen's user avatar
  • 1
1 vote
2 answers
310 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 ...
Kathy M's user avatar
  • 13
3 votes
2 answers
5k 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
Sahil Malhotra's user avatar
-4 votes
2 answers
7k 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.
Mohit K's user avatar
  • 746
1 vote
0 answers
186 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 ...
VarunC's user avatar
  • 5,900
0 votes
1 answer
46 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 ...
Keith C's user avatar
  • 135k
2 votes
1 answer
5k 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="...
Hayato's user avatar
  • 165

1
2 3 4 5