I have 5 inputtext I want to add the value of all the inputtext to a outputtext. I dont want any action to be done on the button click. I need when the value of the 1st and 2nd inputtext is entered then it should get added, same as with 5 inputtext. I want it should work on value change of inputtext.

2 Answers 2


You may use Onchange event of the inputText to call an action function.


Refer the above and call the action function on the Onchange event and refer the below document to understand how you can call action function by binding with Id of the component



I would try it with jQuery:

<apex:inputField value="Object.Field__c" styleClass="inputField1">
<apex:outputText value="..." styleClass="outputField">


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .