4

You used a self closing input. You need to leave it open to nest the actionSupport under it. Incorrect <apex:inputField ... /> <apex:actionSupport ... /> Correct <apex:inputField ...> <apex:actionSupport ... /> </apex:inputField>


3

You have to use aura:id instead of name. Try this : <lightning:select aura:id="wallheight" label="Wall Height : " onchange="{!c.doSomething}"> <aura:iteration items="{!v.wallheight}" var="wallheight"> <option text="{!wallheight.Name}" value="{!wallheight.value}" selected="{!wallheight.selected}"/> ...


3

I am assuming you are loading values for parent attribute from init handler thats why it gets set as undefined initially. ' There are few ways to handle it: Put the child components inside an aura:if and load them once the parent init has fired and the attributes on the parent especially the ones passed to child components are set. Set an attribute on init ...


3

That component sets up the jQuery code using: j$(document).ready(function(){ j$('#{!searchBoxId}').typeahead({ minLength: {!minSearchLength}, hint: true, autoselect: true, highlight: true }, .... but that ready callback only happens on the initial page load and not when you re-...


3

Few changes in your code <apex:inputField value="{!caseRec.AssetID}"> <apex:actionSupport event="onchange" action="{!determinePageBlock}" reRender="{!pageBlockList}" /> </apex:inputField> remove immediate="True" now if you select any assert record actionSupport call determinePageBlock method there check caseRec.assetID


2

The possible reason for this behaviour can be Areas of the page are being rerendered, but not a page messages component, and an required field is missing or a validation rule is failing. In this scenario the error will be swallowed and the page will remain unchanged. The form submission is using an action region, which excludes the input from the server ...


2

Since you haven't given value attribute for the <ui:select/> component, you could do selectCmp.get("v.value") since it is internally available.Click here to find more attributes that are available in the component. onChangeFunction: function(component,event) { console.log(event.getSource().get('v.value')); //only works for aura:component like <...


2

The below link details on how to capture old and new values. Lightning Change Event So we access the values in the controller as follows: ({ numberChanged : function(component, event, helper) { var newValue = event.getParam("value"); var oldValue = event.getParam("oldValue"); alert("Expense name changed from '" + oldValue + "' ...


2

Your component has the v.selectedValue attribute (whereas ui:inputSelect has a v.valueattribute) so in your onChange it would be: component.get("v.selectedValue") to access that value not: selectCmp.get("v.selectedValue") My first guess is that the onChange method may not even be needed assuming there is two-way binding. You could check that with this ...


1

To answer your question directly, Salesforce would have to expose these attributes to you with additional code, etc. As such, there's no way to access the attributes unless they were exposed. You can write your own custom component, however, using SLDS. Native HTML elements have limited Locker Service protection so you can access many of their normal ...


1

I found a workaround. I just put the onchange event on the parent div as shown below. However, it would be nice to be able to assign it directly to lightning:inputField. I assume there is a bug in the code. var changeOrderType = component.getReference("c.changeOrderType"); newComponents.push(["aura:html", {"tag": "div", "HTMLAttributes": {"class": "slds-...


1

Since the Strike Lookup ultimately renders HTML elements, you can handle DOM events fired by the child HTML elements by wrapping them with a div and defining attributes for the specific DOM events that you want to handle. While the following post focuses on Base Lightning Components, it would apply to your use case as well: Reference: Handle DOM Events ...


1

You need to include actionsupport inside your inputfield <apex:inputField value="{!Loan_Memo__c.Relationship__c}" > <apex:actionSupport event="onchange" action="{!getrelatedcovs}" reRender="covenanttable" status="status" /> </apex: inputfield>


1

Even if you use HTML5 events, the native event gets wrapped by Locker Service, so you won't necessarily have access to all of the event attributes that you might expect if you weren't working with Lightning. For your scenario, it would make more sense to wrap your input element inside a custom component. Then, in the custom component, you can use an <...


1

I find that trying to query by Id is challenging to do accurately in Visualforce. Instead, just use an HTML passthrough attribute and query on that instead. <!-- Visualforce element you want --> <apex:inputField html-data-some-value="abc" /> // In JavaScript var inputs = document.querySelectorAll("[data-some-value='abc']"); Depending on ...


1

In your javascript controller function, you should find the ui:inputSelect component first, and then get the value of that: onChangeFunction: function(component) { console.log(component.find('InputSelectDynamic').get('v.value')); } I've tested this in Google Chrome, and it works just fine.


1

When we use immediate="True" Salesforce bypass the view state and never bind the visualforce page variable with controller properties which cause this issue. By default immediate attribtute is false which does the variable binding automatically. Immedidate="True" is generally required when we bypass the page validation and we want to submit data using ...


1

Ended up with an alternative. Added actionSupport for inputText fields to be fired in the onchange event. Working as expected. <apex:inputText id="quantity" value="{!item.quantity}" > <apex:actionSupport action="{!calculateTotals}" rerender="pnlSummary" event="onchange"/> </apex:inputText>


1

Finally I came up with the following solution. I use actionFunction instead of actionSupport and call it from JavaScript onChange handler. <apex:page controller="requiredCont"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/...


Only top voted, non community-wiki answers of a minimum length are eligible