+ Start a Discussion
Uttpal chandraUttpal chandra 

Pop up on detail page button

Hi all,
I had created one Visualforce page and i want to implement that as a pop up on a Detail Page button.

Right now when i click on a button it automatically move to that vf page.

Thanks in Advance
Best Answer chosen by Uttpal chandra
DevADSDevADS
HI Uttpal,

You need to use jquery with iframe to achieve this. When button is clicked then you can open a jQuery modal and display a Visualforce page embedded inside an Iframe, which will contain all your details. Use postmessages to send any parameters required to iframe.

You can refer to this link (https://jungleeforce.com/2014/06/17/showing-a-vf-in-jquery-modal-dialog-on-standard-page-button-click/) to achieve it.

Do post here if you have any further questions.

Happy Coding!!

All Answers

DevADSDevADS
HI Uttpal,

You need to use jquery with iframe to achieve this. When button is clicked then you can open a jQuery modal and display a Visualforce page embedded inside an Iframe, which will contain all your details. Use postmessages to send any parameters required to iframe.

You can refer to this link (https://jungleeforce.com/2014/06/17/showing-a-vf-in-jquery-modal-dialog-on-standard-page-button-click/) to achieve it.

Do post here if you have any further questions.

Happy Coding!!
This was selected as the best answer
Khan AnasKhan Anas (Salesforce Developers) 
Hi Uttpal,

Greetings to you!

Please refer to the below links which might help you further with the above requirement.

http://www.pawelwozniak.info/index.php/salesforce-com/visualforce/147-vf-page-popup-when-page-button-clicked

https://kevansfdc.blogspot.com/2017/02/using-salesforce-standard-modal-in_14.html

https://developer.salesforce.com/forums/?id=906F0000000BR31IAG

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
Uttpal chandraUttpal chandra
Thanks you Anas and DevADS both the Answer was correct but i had prefer going with DevADS since it is showing Id which I needed.

Again thanks for the answer to both of you.

Thanks and Regards,
Uttpal Chandra
Arthor MorgenArthor Morgen
I love these loofah back scrubber (http://https://www.snowyee.com/products/back-scrubber-loofah-for-women-men-shower) set from this website which includes body scrubber, luffa sponge and bath glove

https://www.snowyee.com/products/back-scrubber-loofah-for-women-men-shower