Questions tagged [lightning-textarea]

For questions regarding the lightning:textarea. It creates an HTML textarea element for entering multi-line text input. A text area holds an unlimited number of characters.

Filter by
Sorted by
Tagged with
0 votes
1 answer
134 views

How to clear LWC lightning-textarea in javascript

I have an lwc with a simple form which includes a few checkboxes and two selects and one textarea. My submit function does a callout, and then clears the inputs. The rest of the inputs are cleared, ...
hgolov's user avatar
  • 733
1 vote
2 answers
565 views

Custom LWC Flow Screen Component - reportValidity not highlighting field in red

I have a really simple FSC (simplified for this question). It just contains a lightning-textarea. I'm trying to get the textarea to be outlined in red when the user clicks Next on a Flow screen and ...
Nick C's user avatar
  • 6,553
0 votes
1 answer
278 views

What is the use of messageWhenTooLong function in lightning input or textarea

What is the use of messageWhenTooLong function in lightning input or textarea. In practice, the lightning-input element appears to prevent the user from entering any characters beyond the number ...
Neeraj Rautela's user avatar
0 votes
1 answer
6k views

LWC setCustomValidity

In my custom page i have multiple multiple row, contains lightning-input, lightning-combobox and lightning-textarea it has horizontal scroll. Each field has its own validation logic. My question here ...
user3214361's user avatar
1 vote
1 answer
724 views

Creating a text template using a formula [closed]

I am attempting to get the following result in a text area in Salesforce using a Formula; AccountName has opened a case requesting something. The case was opened by FirstName LastName, Please reach ...
キリト's user avatar
0 votes
1 answer
350 views

How to override standard slds class for textarea in lwc

I have a textarea field in my LWC. I'm trying to set height for the textarea but no luck. <lightning-textarea name={record.id} class="slds-p-horizontal--xx-small" variant="label-...
sfMon's user avatar
  • 49
0 votes
1 answer
1k views

How to make input element read only on button click

<lightning-input value={value} class="slds-p-horizontal--xx-small" variant="label-hidden"></lightning-input> <lightning-input type="number" name="...
sfMon's user avatar
  • 49
-1 votes
1 answer
502 views

Populate datatable from textarea input

I have two textarea inputs taking in columns and data for the datatable(format seen in default values below). <aura:attribute name="values" type="String"/> <aura:...
Shreya Pandita's user avatar
0 votes
1 answer
1k views

Adding a placeholder in <lightning-textarea > is causing triggering of onchange event on it in IE browser

Adding a placeholder in lightning-textarea is causing the triggering of onchange event on it in the IE browser. Below is the snippet where I have added placeholder = "Enter value". While ...
Pankaj Andhale's user avatar
1 vote
1 answer
2k views

how to change the height of the lightning:textarea?

I want to increase the height of the lightning:textarea. When I add two textareas to the aura:component, it looks like this: And, i want to increase the size of the upper textarea. So, according to ...
Jayesh Babu's user avatar
3 votes
1 answer
3k views

tabindex on lightning components

I recently added tabindex's to lightning components, I noticed that it doesnt really behave as desired. Example, I have the following form: <lightning:select tabindex="1" .../> <lightning:...
glls's user avatar
  • 20.1k
2 votes
2 answers
248 views

Bug: sometimes can't recognize document.getElementById("inputField").value

I have code that works 99+% of the time, but occasionally it doesn't work. If you reload the page, then it works again. Here's the situation. I have a component with a input field. On keyup, a ...
PatMcClellan__c's user avatar
0 votes
1 answer
347 views

Lightning:textarea is half the width of 2-of-12 of slds-grid [closed]

I've got this sorta table with lightning:textarea component that severely limited itself in width. Not sure why this happens.
dzh's user avatar
  • 4,086