How to Display a popup window in Visualforce?
Visualforce is a great apparatus in the Salesforce stage weapons store however, similarly as with any innovation in light of the customer/server model of the http convention, it has certain limits about what it may or may not be able to. Any web application essentially can't perform in a solitary task yet most clients hope to happen consistently. l additionally attempt and limit our utilization of non-Visualforce parts to keep our answer as "In the Box" as could reasonably be expected.
This is critical for two or three reasons:
1.The more outer libraries and code we use the more probable that some future refresh to Salesforce itself will break our answer.
2.Any consequent engineers who are entrusted with refreshing and keeping up our code later on are more averse to be left scratching their heads and investing hours before Google attempting to make sense of precisely what the hell it was that we did.
https://youtu.be/zoSmVnVKEzs
Create a model popup in Salesforce(dot)com
To make a pleasant popup window to demonstrate the client some input. To dispatch the popup window when the client clicked a Visualforce catch. Subsequent to doing some this was conceivable.
Here are the means to make a modular popup through Apex/Visualforce:
Stage 1 - Login to your Salesforce.com designer account
Stage 2 - Click "Setup" in the upper right corner
Stage 3 - Under the App Setup segment (left menu), extend Develop
Stage 4 - Click on Apex Classes
Stage 5 - Click the "New" catch to make another Apex Class
Stage 6 - Add the accompanying source and tap the "Spare" catch.
(we'll stroll through what this does in a minute)
Step 7 - Click on Pages (below Apex Classes on the left menu) Step 8 - Create a new Visualforce page by clicking the "New" button Step 9 - For the purpose of this tutorial I used "tstpopup" for my Label & Name Step 10 - Enter the Visualforce Markup code below and click "Save"
Step 11 - Now, to view the finished page, you'll need to go up to the browser address bar and navigate to the apex directory in your Salesforce(dot)com account and type in the page name.
Here is the page that comes up:
After clicking on the button, our popup is displayed.
If you found this post useful, Make sure, you can check out our online Learning courses for more tips, tricks and techniques for effectively to uncover unique insights from your data











