+ 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