function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Justin DenningJustin Denning 

Rerender outputField after a Lookup Field is Cchanged

I have a VF page that retrieves a list of records and users can enter an amount and select an exchange rate via a lookup field.  The convertedUSD output field displays the amount based on the selected exchange rate.  The rerender works fine if the user changes the Amount field, but doesn't work when a different Exchange Rate is chosen.  What can be done to make it so that changing the exchange rate lookup will rerender the output field?
 
<tr>
      <td>
			<apex:inputField value="{!List.Forex_Amount__c}">
					<apex:actionSupport event="onchange" action="{!doNothing}" reRender="convertedUSD" />
			</apex:inputField>
      </td>
      <td> 
			<apex:outputText id="convertedUSD" value="{!List.Forex_Amount__c*List.Exchange_Rate__r.Rate__c}" />
     </td>
     <td>
			<apex:inputField   value="{!List.Exchange_Rate__c}" >
				<apex:actionSupport event="onchange" action="{!doNothing}"  reRender="convertedUSD" />
			</apex:inputField> 
    </td>
</tr>