Tag Archives: Salesforce integrations

Set controller variable/properties from JavaScript

Sometimes we need to pass values to apex code or assign the controller properties in JavaScript. Here is the trick that we can use to set a value to an apex variable/properties from JavaScript code using <apex:inputTextarea>  tag in Visualforce Page. <apex:inputTextarea id=”setDataStringValue” value=”{!setDataStringValue}” styleClass=”exampleDataToSetVariable” style=”display:none;”/> We will set the value ‘data’ in JavaScript function… Read More »