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
patelankurbpatelankurb 

How to pass values from javascript to Apex controller(Urgent)


Hi All,

We have one problem regarding passing values from JavaScript function to Apex controller. Let us know if anyone has solution.
Any help would be appreciated.


MJ09MJ09

Try creating an <apex:inputHidden> component in your VF page. Then your JavaScript code can assign a value to that component. When your controller runs, it can pick up the value from there.

Message Edited by MJ09 on 03-01-2009 10:56 AM
DowithforceDowithforce

Can you please explain with example?

 

 

Thanks in advance.

ShikibuShikibu

You can pass back javascript values with the apex param component. See this blog post.