Questions tagged [onchange]

The tag has no usage guidance.

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

Get the label of edited column in lwc datatable

I have a datatable with 10 columns - ex - <template> <div style="height: 300px;"> <lightning-datatable key-field="id" ...
Rakesh Kumar's user avatar
0 votes
2 answers
1k views

how can i calculate total value in a table row with javascript in visualforce page?

i have a table with 3 column in visualforce page there is one input value and others are output value. When input value is changes, input value and second column value must be multiplied and the third ...
merve-bulut's user avatar
1 vote
0 answers
833 views

LWC Fires on Change Event when Record Edit Form Picklist Fields are reset

On my Lightning Page I am using a Record Edit Form with Input fields for Picklists and Text. When any of the Input fields are changed the onchange Event Handler is firing the HandleChange Event. This ...
Jeff Callahan's user avatar
3 votes
1 answer
888 views

Which is preferable and why: onchange or template.querySelector

There are a few different ways to get the current value of a field in LWC but which one is preferable and why? For example, if I have an lightning input field called 'Footballer Name' on a LWC ...
Andy Hitchings's user avatar
2 votes
1 answer
2k views

How to Get the Current Value from a Lightning-Input-Rich-Text

QUESTION(s) Is there a way to increase the polling rate of a lightning-input-rich-text field? OR Can I just get its current value without needing an onChange event? OR Can I force an onChange event ...
User's user avatar
  • 111
0 votes
1 answer
600 views

Can you give custom attribute to select options in LWC?

Can you give custom attribute to select options in LWC? I'm trying to give the last option a onchange attribute. .html <template> <lightning-checkbox-group name="CheckboxGroup" ...
Ian Lee's user avatar
  • 127
1 vote
2 answers
4k views

LWC event.currentTarget.value is undefined in production but works in sandbox

I have the below code for creating a list of checkbox's to select multiple options to filter a datatable. The code works fine within the sandbox however once i moved the code to the production org the ...
TimChadwick's user avatar
0 votes
1 answer
88 views

VF page onchange on dropdown not working

I am using bootstrap in my VF page and i want to rerender a field. so i am rerendering the whole row but it is not rerendering propery. Can someone let me know the issue in my below code. <...
Rajesh's user avatar
  • 43
0 votes
0 answers
1k views

Lighting-Input-Field - onchange

I have a lighting input field where onchange={handleChangeInc} The handler is below. This works fine but it also triggers when I save a record using submit. Is there any way to avoid the same ...
Frank's user avatar
  • 421
-1 votes
1 answer
1k views

LWC Html table with lightning-input onchange giving error

I have a html table in my LWC child component which is populated from the parent. I am able to pass the values and display the data on the child component. On the child component the table has a ...
Rohit's user avatar
  • 11
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
0 votes
2 answers
333 views

How to check value of inputfile in apex repeat on save with javascript

I have a visualforce page where I give the option to save 2 files based on an apex repeat. I check when a file is added on change if the filesize does not surpass 5mb and alert the user if needed. On ...
Thomas's user avatar
  • 2,294
0 votes
2 answers
140 views

How can I get my class to pull the exact record that made the trigger run?

Trigger: trigger UpdateLastActivitySubject_trigger on Lead (before update) { List<Lead> lead = Trigger.new; for (Lead ld : lead) { if (ld.Last_Activity_Date__c != trigger.oldMap.get(ld.Id) ...
Kyle Schiess's user avatar
2 votes
1 answer
3k views

How do I clear a selected onchange value from an aura component on reload?

I have an aura component with 3 dropdowns which are dependent on each other. Dropdown 1 is loaded on init. Dropdown 2 is loaded on a selection in 1.(image below blue section 1) Dropdown 3 is loaded ...
Irene's user avatar
  • 1,811
0 votes
1 answer
1k views

How to get fieldName when inputfield updated

I'm using lightning:recordEditForm and lightning:inputField. I know that event.getParam('change') return updated value. but I want to get fieldName of inputField which is updated. thank you. ...
S Kawasaki's user avatar
0 votes
0 answers
1k views

onchange event not triggered on removal of last character - LWC

I need to display the count/length of string entered in a text box as and when changed(addition/subtraction of new characters) using LWC <template> <lightning-input ...
Shri's user avatar
  • 147
0 votes
0 answers
212 views

OnChange ActionSupport event not triggering

I want to do something pretty basic: Enter a Sales Order Number (Lookup field) and then select the Serial Number of an Item from a Picklist. The following code is working but it's not reRendering the ...
Alejandro Flores's user avatar
0 votes
0 answers
390 views

Firing an event from one component to another in Lightning

Appreciate some guidance. I have a component which has a checkbox component and a calendar component. I would like to fire an event when a checkbox is selected and render the 2nd component(calendar) ...
Hara Prasad Sahoo's user avatar
2 votes
1 answer
1k views

How can you get the caret position when working from an event?

Looking at the Locker documentation they list selectionStart as being a valid attribute, but I can't find a way to access it. I am trying to write an input masking utility, and everything works fine ...
Tezyn's user avatar
  • 346
0 votes
1 answer
5k views

Onchange Function for Lightning:inputField Automatically Runs (Causing an Error) when Loaded in a Modal

I have a component that opens in a modal. Modal/Button Markup <lightning:overlayLibrary aura:id="overlayLib"/> <lightning:button name="modal" label="Create Pet" onclick="{!c.handleShowModal}...
Gabriel Rivera's user avatar
5 votes
0 answers
767 views

Lightning component error handleOnBlur event

I have an iteration on a component with an ui:inputNumber inside, which has an onchange event that calls a server side action. If after i change the value, i click on an input after the onchange is ...
user37586's user avatar
  • 660
6 votes
1 answer
4k views

Add onchange event for lightning:inputField in $A.createComponents

I am trying to create a lightning:inputField using $A.createComponents. The issue I have is that I am not able to add an onchange event. The field Level__c is a picklist field. When I use the ...
Chris K.'s user avatar
  • 349
6 votes
2 answers
680 views

Distinguishing a change event when there are multiple instances of a child component

I'm building a form in Lightning where I want to use the Appiphony Strike lookup component to get input for lookup fields. I also have my own component that depends on the value selected for the ...
David Cheng's user avatar
  • 7,076
1 vote
1 answer
811 views

Lightning: Detecting attribute changes after initial value

My problem is related with the 'change' event on a component attribute. I only want to execute a code after this attribute is initialized by the parent component. For example: <!-- CHILD ...
Ismael Slimane's user avatar
2 votes
1 answer
2k views

How to get before/after information from change events [duplicate]

I'm changing a field in my lightning component and handle the change with a default lightning change handler. I can not make use of aura:handler name="change" since I'm in a loop, where change events ...
itsmebasti's user avatar
  • 6,437
3 votes
0 answers
855 views

Lightning "change" event doesn't fire in aura:Iteration

I am passing an Object to my component and iterate through it's child records. To handle changes I added the Lightning change handler. (I made data an array, so I can set a default for demo purposes, ...
itsmebasti's user avatar
  • 6,437
0 votes
1 answer
450 views

Aura Lightning On Change

I have a Lightning component ui:inputSelect, and I'm trying to capture an OnChange.It appears that it very well documented to do it but I cannot seem to figure out what I'm doing wrong, I've tried ...
EricSSH's user avatar
  • 4,334
0 votes
1 answer
193 views

rerender and save the record when a field is edited issue

Hi I'm quite new to to VF and having an isssue getting something to work. Basically what I'm trying to achieve is when a field is edited:QuoteLineItem.QoS__c is changed ( a boolean field) it ...
Sarah's user avatar
  • 1
0 votes
1 answer
151 views

Can I use html5 event listener instead of lightning change handler attribute

As I studied this documentationhttps://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/js_cb_data_change.htm I understand that I need to create change handler<aura:handler name="...
Akshay Vijay Jain's user avatar
1 vote
2 answers
919 views

not being able to get apex element id in javascript method

I am trying to access the id of an apex:inputfield tag within a script method. The inputfield is within an apex:repeat variable. I am trying to use the dollar component to access the id of the input ...
Rimii's user avatar
  • 61
1 vote
1 answer
3k views

Lightning - onChange issue

Component code: <lightning:select name="wallheight" label="Wall Height : " onchange="{!c.doSomething}"> <aura:iteration items="{!v.wallheight}" var="wallheight"> ...
Sriman ch's user avatar
6 votes
1 answer
816 views

Detect Tab changes inside the detail view of an Object in Lightning?

I have a detail view with system created tabs (created in the page layout) and one of my tabs contains some lightning components that need variables changed when the user moves to another tab. ...
user40646's user avatar
1 vote
2 answers
473 views

Page not re-rendering on change? Method not working?

I am trying to run a soql query based on an input value on a Visualforce Page. However, I don't see that the results are displayed on the page when the input field is changed. VF Page: <apex:...
Starley Flynn's user avatar
1 vote
1 answer
257 views

Rerender Typeahead Custom Component

I am using below Typeahead Component to search for existing Contacts in visualforce page. But when I rerender section of Typeahead component it is showing blank page. https://github.com/...
sfdc's user avatar
  • 13.7k
4 votes
2 answers
12k views

onchange event listener for ui:inputSelect not working

I am trying to implement a picklist using the Aura component <ui:inputSelect> with a change event listner. But I see that the change event listener (JavaScript function) is not getting ...
Kiran C V's user avatar
3 votes
0 answers
3k views

onchange event in selectList and actionSupport not firing after first time

I have a VF page where the user can select the RecordType before seeing all the fields for the selected record type on my custom object Request_For_System_Change. Here is the VF Code: <apex:...
Our Man in Bananas's user avatar
0 votes
1 answer
1k views

The radio button after clicking doesnt let to refresh the page!

I had a quiz program in apex which displays the next question value when the 'Next' button is clicked and it's working fine. But when I select a value in the radio button which I had used for choices ...
Shiva Rv's user avatar
0 votes
2 answers
17k views

Can I access an apex:inputField onchange value in my controller/extension without saving the record?

My Cases VF page renders page block sections based on info pulled from the value entered into the Asset lookup field, using an actionSupport tag. <apex:inputField value="{!Case.AssetID}"> ...
smohyee's user avatar
  • 3,816
0 votes
1 answer
1k views

SelectList onchange not firing only for some values

Having a simple apex:selectList and using apex:actionSupport to handle user selections which is working fine. Surprised that the event is not firing only for some values. page: <apex:actionRegion ...
highfive's user avatar
  • 6,241
3 votes
2 answers
960 views

actionFunction behavior differ for inputCheckbox and inputText

Have some inputText fields and I'm doing some calculations with the values of these(inputFields are inside a pageblocktable, having wrapper items). VF : <apex:actionFunction name="calculateTotals"...
highfive's user avatar
  • 6,241
1 vote
0 answers
970 views

onchange event not working in chrome but works well in firefox

Today I faced a weird issue. I have made a visualforce page containing an autocomplete box for searching. I have used javascript in my controller class and have written "onchange" event in visual ...
Alpesh Patel's user avatar
1 vote
1 answer
6k views

Do not VisualForce JavaScript onChange and actionSupport work together?

It seems like you can't use VisualForce JavaScript onChange and actionSupport together, because if you use onChange property on inputField then actionSupport onChange wouldn't work. There is here my ...
Patlatus's user avatar
  • 16.7k