Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [onchange]

The tag has no usage guidance.

0
votes
0answers
22 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 ...
0
votes
0answers
37 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) ...
2
votes
1answer
95 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 ...
0
votes
0answers
272 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}...
5
votes
0answers
358 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 ...
6
votes
1answer
2k 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 ...
6
votes
2answers
211 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 ...
1
vote
1answer
277 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 ...
2
votes
1answer
916 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 ...
3
votes
0answers
376 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, ...
0
votes
1answer
138 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 ...
0
votes
1answer
78 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 ...
0
votes
1answer
111 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="...
1
vote
2answers
245 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 ...
1
vote
1answer
2k views

Lightning - onChange issue

Component code: <lightning:select name="wallheight" label="Wall Height : " onchange="{!c.doSomething}"> <aura:iteration items="{!v.wallheight}" var="wallheight"> ...
5
votes
1answer
133 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. ...
1
vote
2answers
253 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:...
1
vote
1answer
158 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/...
4
votes
2answers
7k 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 ...
3
votes
0answers
2k 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:...
0
votes
1answer
772 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 ...
0
votes
2answers
8k 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}"> ...
0
votes
1answer
752 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 ...
3
votes
2answers
666 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"...
1
vote
0answers
640 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 ...
1
vote
1answer
5k 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 ...