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

Component to Page communication


I want to make a reusable Component that has a Select Box on it. (made using apex:repeater and HTML)


From the page how can I deteremine the currently selected value?


I have read

already but that uses APEX controllers to comunicate I want to do it all client side if possible. 


e.g.    When I press save on the form I want to get a textbox value from my main page, the select list selected value from my component in the one click.

Best Answer chosen by Admin (Salesforce Developers) 
Abhinav GuptaAbhinav Gupta

The explanation to it is little lengthy so I covered it in a blog post here :


For sake of simplicity in illustrations,  I have used a text field inside component. You can easily replace this with select list to get the selected list value.