<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>validation &#8211; Hamza Siddiqui</title>
	<atom:link href="https://www.mhamzas.com/blog/tag/validation/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.mhamzas.com</link>
	<description>4x Salesforce MVP &#124; 26x Certified &#124; Salesforce App &#38; System Architect</description>
	<lastBuildDate>Fri, 17 Jan 2020 07:13:21 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>
<site xmlns="com-wordpress:feed-additions:1">233526040</site>	<item>
		<title>Custom validation in Lightning web component</title>
		<link>https://www.mhamzas.com/blog/2020/01/17/custom-validation-in-lightning-web-component/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=custom-validation-in-lightning-web-component</link>
					<comments>https://www.mhamzas.com/blog/2020/01/17/custom-validation-in-lightning-web-component/#respond</comments>
		
		<dc:creator><![CDATA[hamza]]></dc:creator>
		<pubDate>Fri, 17 Jan 2020 07:11:55 +0000</pubDate>
				<category><![CDATA[Salesforce]]></category>
		<category><![CDATA[lwc]]></category>
		<category><![CDATA[validation]]></category>
		<guid isPermaLink="false">https://www.mhamzas.com/?p=3066</guid>

					<description><![CDATA[As Lightning component is kinda new and I was struggling finding ways to add custom validation on any field (lightning-input specially) and even very little information is available all over internet (yet) and I assume others may be struggling for the same <br /><a href="https://www.mhamzas.com/blog/2020/01/17/custom-validation-in-lightning-web-component/" class="more-link btn btn-primary">Read More</a>]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">As Lightning component is kinda new and I was struggling finding ways to add custom validation on any field (lightning-input specially) and even very little information is available all over internet (yet) and I assume others may be struggling for the same solution. Luckily, it worked out for me and I am sharing the JS method which will add custom error validation on any field.</p>



<p class="wp-block-paragraph">In this method, I am getting the date value and checking if its empty then print some error on field and returning back the null value else remove the error message (if any) and return the entered value.</p>



<script src="https://gist.github.com/mhamzas/d0e965d725f8647cd4ba7978aee164e3.js"></script>



<p class="wp-block-paragraph">Happy Coding !</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.mhamzas.com/blog/2020/01/17/custom-validation-in-lightning-web-component/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3066</post-id>	</item>
	</channel>
</rss>
