0

I have created a custom lightning component. This component has two more child components which render as per the user selection. One of my child components is for lead, which inserts lead records. The other one is for account, I have to insert account records and then start the chat. I think so I need to use prechat method(startChat(fields)). For this I have implemented the interface lightningsnapin:prechatUI and on the markup I have also defined <lightningsnapin:prechatAPI aura:id="prechatAPI" /> When I use startChat method, It shows that I need to first validate the fields. Can anyone help me out whether or not can I validate the fields(in my case it is of the Account object). If not then how can I start the chat?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.