Hi All, I'm struggling with writing some code in order to get a pop up message to show to the user if 'no' is selected from the picklist value set. Code below...Not sure how accurate this is but for context, the page I want it to impact is the 'Opportunity Product' page and the field is called 'Availability checked with AdOps?' and the value needs to be 'No' that triggers it. Lightning Component: <aura:component implements="flexipage:availableForAllPageTypes" access="global" > <aura:attribute name="Availability_checked_c" type="string"/> <lightning:select label="Availability checked with AdOps?" name="Company Status" value="{!v.Availability_checked_c}" onchange="{!c.showInfoToast}" > </lightning:select> </aura:component>({showInfoToast : function(component, event, helper) { var toastEvent = $A.get("e.force:showToast"); toastEvent.setParams({ title : 'Info Message', message: 'If availability has not been checked, delivery of this product is not guaranteed', messageTemplateData: ['FirstElement','SecondElement'], messageTemplate: 'Record {0} created! See it {1}!', duration:' 5000', key: 'info_alt', type: 'info', mode: 'dismissible' }); toastEvent.fire(); } }) #Data Management
Thanks so much for your help. I am now getting this error message.