You need to sign in to do that
Don't have an account?

VisualForse Page: Calculated Field
Hello Every one,
I want to automatically calculate a field in my visualforce page from the multiplication of two other fields (in the same page).
Thank you in advance
I want to automatically calculate a field in my visualforce page from the multiplication of two other fields (in the same page).
Thank you in advance
Refer below sample code
Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
Best Regards
Sandhya
had to add form's id to $Component
exemple
<apex:inputField id="id2" value="{!lead.Total_Activites__c}"onblur="fix(document.getElementById('{!$component.id1}').value,this.value)"/>
changed to
document.getElementById('{!$Component.form1.thePageBlock.thePageSection.id1}')
(form1 is form's id, thePageBloc is pagebloch's id and PageSection is pageserction's id)