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
jha.pk5@cloud.comjha.pk5@cloud.com 

how to pass java script value to controller

one global variable is in java script so i want to pass dat value in my controller
<apex:actionFunction name="saveCustName" action="{!saveCustomerName}" reRender="frmHome">
<apex:param name="custName" assignTo="{!customerName}" value=""></apex:param> how can i do this

b-Forceb-Force

you need to define variable in Apex controller , define get set

 

in VF page use some hidden field and populate that hidden field value in javascript

 

Thanks,

bForce