+ Start a Discussion
亮 山崎亮 山崎 

How to inform message on standard screen when saving

Hi All

Id like to inform  message when user saved.

The Screnn is Standard Screen and Standard Button(New ,Edit, ・・・)

Would you teach me 「How to inform message on standard screen when saving」?

Except Validation Rules.
Because Validation Rules become error message .not information.

 

 

Best Answer chosen by 亮 山崎
VinayVinay (Salesforce Developers) 
Yes would recommend to build and use custom page to display or tweek messages as per your requirement.

Thanks,

All Answers

VinayVinay (Salesforce Developers) 
You cannot use popup message on standard screen you might need to build in custom page or use javascript on custom button to display popup alert message.

Something like below.
window.document.onload = new function(e)
{
if({!Contact.Some_Checkbox__c})
{
alert("Checkbox is True");
}
else
{
alert("Checkbox is False");
}
}
</script>

Check below references.
https://www.infallibletechie.com/2018/09/how-to-display-success-message-on.html
https://www.infallibletechie.com/2012/07/popup-in-salesforce.html
https://springsoa.com/salesforce-lightbox-modal-dialog-on-standard-page/

Please mark as Best Answer if above information was helpful.

Thanks,
亮 山崎亮 山崎

Hi Vinay  

Thank you for your reply.

I use Lightning(LEX) Enviroment.

so ,in my understanding ,i canot use 「 javascript on custom button」.
Is it correct?

If so ,maybe I should make custom page (VF or Lightning Component etc・・・)
 

VinayVinay (Salesforce Developers) 
Yes would recommend to build and use custom page to display or tweek messages as per your requirement.

Thanks,
This was selected as the best answer
亮 山崎亮 山崎
Hi Vinay 
 
Thanks , I understood.

Ryo