I have requirement in which on a certain condition i have to show an alert box in which i will have a link and a button. On click of the link i have to do some logic and do some DML operations. What i want to do is that i want to show a custom visualforce page having the link and button and show that page in a iframe in the alert box.
Is this possible or i have to look other way around. Also is there anyway i can i can do this by jquery.
Best Answer
Here is what you can do Create a custom button and fill in the details and in "Behavior Section" choose "Execute JavaScript" and for "Content Source" choose "OnClick JavaScript",and in the code section paste the following code
This will bring up a modal where you can display your visual force page through iFrame and further through controller you can do all the DML operations.