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
Ahmed AdelAhmed Adel 

Update Field in Parent VisualForce Page from a child VisualForce Page

 

Hey

 

I have Parent Page Called X which contains input text which has ID='test' and a button which opens Visual Force page called y in new window 

the Y page will display Accounts available in the System , I need when I click on one Account in The Y page it will print the Account Name in the X Page Input text which has the id='test'

 

I did the below:

 

<a href='AcountName' onclick=" window.opener.document.getElementbyId('j_id0:myForm:test').value = this.href ">Account Name Example</a>

 

j_id0:myForm:test is the id of the Input text id='test'.

 

but this is not working , can anyone help me figure out solution for this.

 

Thanks