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
utkarsh singh 53utkarsh singh 53 

How to access child vf component's data from parent vf component

I have an input form in a child vf component whose fields are rendered from a field set.  
This child component is being called from a parent component where I want to validate on the parent controller whether the the required fields in child component's field set is filled or not before saving it.
So to do this I will need to access child component's data from a parent vf component's controller. But I am not sure how to access it.
E Jayaraman IyerE Jayaraman Iyer

Is the controller same for both Child and Parent components? If they are same you will be able to access all variables from both components.

If they are different, then in that case you may need to create attributes on the components and set them such that they can communicate.

Refer the below link :