You need to sign in to do that
Don't have an account?
Aswin B S
Accessing value from custom component in javascript of vf page
Hi,
I have a custom component which provides lookup records based on the value entered. It is used in vf page inside a form. How can I fetch the value selected in the custom controller in my vf page javascript as soon as a value is selected.
Thanks
Here is the outline of code
<apex:page>
<script> Need the value here </script>
<c:customComponent/>
</apex:page>
I have a custom component which provides lookup records based on the value entered. It is used in vf page inside a form. How can I fetch the value selected in the custom controller in my vf page javascript as soon as a value is selected.
Thanks
Here is the outline of code
<apex:page>
<script> Need the value here </script>
<c:customComponent/>
</apex:page>
Greetings!
Please find the example code in the below thread to refer the field from the Component.
https://salesforce.stackexchange.com/questions/32162/how-do-i-pass-a-parameter-from-component-to-a-visualforce-page
Kindly mark it as best answer if it helps so that it can help others in the future.
Warm Regards,
Shirisha Pathuri
Hi Shirisha,
Thanks for sharing the code. But the example code shows how to pass a value to the component. My page and component uses different controller. I am looking a way to pass a value from component to the controller of my page.
Thanks,
Aswin