You need to sign in to do that
Don't have an account?

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
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
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
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!!
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
Again thanks for the answer to both of you.
Thanks and Regards,
Uttpal Chandra