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
MG05MG05 

Reference component in commandbutton

Hi,

Any idea on how to render a vf component using a commandbutton? I would like to display a pop-up window when the button is clicked. I created a vf component for the pop-up window but have no idea on how to associate it with a command button/link

Thanks!
ssssssssssssss
You can use a commandbutton along with the attribute 'onclick'. On onclick, you can open a window using window.open.

Thanks.

~S