You need to sign in to do that
Don't have an account?
Shubham Sinha 56
How to create a lightning modal or toast message
Hello ,
I have a requirement where i need to show a modal/popup/ toast message whenever a lead status is changed to working. When a status is changed to working at that time only that popup or modal or message should be displayed.
Title - Your lead is in working status now.
Plese help me in order to cater this requirement.Thanks in advance
I have a requirement where i need to show a modal/popup/ toast message whenever a lead status is changed to working. When a status is changed to working at that time only that popup or modal or message should be displayed.
Title - Your lead is in working status now.
Plese help me in order to cater this requirement.Thanks in advance
message Specifies the message to display.
messageTemplate Overwrites message string with the specified message.
messageTemplateData An array of text and actions to be used in messageTemplate.
key String Specifies an icon when the toast type is other. Target MyBalanceNow (https://www.mybalancenow.buzz/)
You can refer below link to display custom user message in standard lightning page.
http://www.sfdcpanda.com/custom-user-message-in-standard-lightning-page/
Thanks!
Hi Shubham Sinha 56,
Greetings!
To create modal in lightning go through this link,
https://sfdcmonkey.com/2017/04/15/modal-box-lightning-component-salesforce/
and to create a Toast message use this code in your javascript function:
If you find this helpful mark it as the best answer
Thank you!
Regards,
Suraj Tripathi
Please use below code
if (leadStatus == "working) {
this.leadStatusChanged();
}
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh
How to use this condiotions and where
if (leadStatus == "working) {
this.leadStatusChanged();
}