+ Start a Discussion

pop up message in custom button using visualforce page


I have a visual force page in custom button  and pop message should display in detail page when i click the custom button .I cannot use javascript as it willl not support in lightning mode. Im using a formula field in detail page like when discount>=50% we can generate pdf else it will show  alert and cannot generate pdf.How can i implement this without using javascript.

NagendraNagendra (Salesforce Developers) 
Hi DevMen,

May I suggest you please refer to the below link from the forums community with a similar discussion which might help you further. Please let us know if this helps.

Kindly mark this as solved if the reply was helpful.

Hi Nagendra,
thanks for your reply. Pop up message is working now.When you click Ok it will redirect to the visualforcepage. It should redirect to detail page record.