You need to sign in to do that
Don't have an account?

Displaying Alert/Warning Message on Object Standard Page Layout in Lightning?
I have a scenarion, that when a field value exceeds a particular range , an alert/warning should be displayed. How to display this Alert/Warning Message on Object Standard Page Layout in Lightning?.
Any help will be appreciated
Any help will be appreciated
Use this code helpful for you.
Click on the link for more explain:- https://www.biswajeetsamal.com/blog/display-toast-message-in-lighting-component/ (http://https://www.biswajeetsamal.com/blog/display-toast-message-in-lighting-component/)
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Ajay Dubedi
www.ajaydubedi.com
I've gone through your requirement and you can use the below code for showing error in standard layout:
//visual force page>
<apex:page standardController="Account">
<script>
window.onload = function(){
//choose the sobject and field as per your requirement
if('{!Account.Preferred_Language1__c}'=='EN' && '{!Account.Residential_Status__c}'=='Non-resident')
{
alert('Warning')
}
}
</script>
</apex:page>
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Deepali Kulshrestha
www.kdeepali.com