Back to Browse

Custom validation in Lightning Web Component | Understanding Regular Expressions (Regex)

8.2K views
Sep 9, 2021
25:55

Hello Trailblazers, In this video we're going to learn how we can we add custom validation in Lightning Web Components. We're also going to learn about Regex (Regular Expressions) and will see how we can implement those in lwc. Chapters: 0:00 Introduction 1:09 Background implementation 3:54 JavaScript validation 8:12 Email validation using regex 16:41 Phone validation using regex 21:04 Pincode validation using predefined properties 25:28 Wrapping up and resources Code: https://github.com/rahulmalhotra/salesforce-lwc-concepts/tree/validation/force-app/main/default/lwc/contactForm Blog: https://www.sfdcstop.com/2021/08/custom-validation-in-lightning-web.html Subscribe to SFDC Stop:- https://www.youtube.com/c/sfdcstop?sub_confirmation=1 LWC Todo App Project Tutorial Series - https://www.youtube.com/playlist?list=PLuL63vr-9xHxru8VhQjYqFEdR_klJeJQb Interested in learning about Scratch Orgs and SFDX ? Have a look at the playlist:- https://www.youtube.com/playlist?list=PLuL63vr-9xHwW96U64tORGA0HT5j1m0Ff Interested in learning about Integration ? Have a look at this playlist:- https://www.youtube.com/playlist?list=PLuL63vr-9xHzI83rrXaXHDcsfVqzrp0iO

Download

0 formats

No download links available.

Custom validation in Lightning Web Component | Understanding Regular Expressions (Regex) | NatokHD