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
DevmenDevmen 

pop up message in custom button using visualforce page

Hi,

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.

Thanks
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.

Thanks,
Nagendra
 
DevmenDevmen
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.

thanks