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
sfadm sfadmsfadm sfadm 

Display of a dialog window

Hello,

I'd like to know how to display a dialog or pop up window in Salesforce.

I'm using a convert button with associated custom visualforce page. I use custom visualfoce page to invoke appex controller class.

Depending on the given parameters the appex class the end result of the class is to return a message. The message is displayed in a visualforce page(see the attached screenshot).Custom Visualforce page

What I would like to know is how to dispaly a message in a dialog or a pop-up window instead of entire visualforce page.

Here is what I would like to achive:
Once the convert button is pressed(see the attached screenshot)Standard Convert Page
I would like to know how to dispaly the message in a dialog or a pop-up window.

Could you please advise how this can be achieved?

 
sfadm sfadmsfadm sfadm
I don't understand your answer. Can you suggest a different approach to help me display the message in the first sreenshot in a pop-up window?

I was thinking of saving the message in a custom field and use javascript to read and display the message. Although I'm not sure if this can work and be easy to implement.