How to Avoid Duplicate Name Record Simply Using a Apex Controller Method -- w3web.net

How to Avoid Duplicate Name Record Simply Using a Apex Controller Method and Validating a Lightning Input Form with Email Regex Pattern Checked and Submit Form on Click Button in Salesforce Lightning

Hey guys, today in this post we are going to learn about How to Avoid Duplicate Name Record Simply Using a Apex Controller Method and Validating a Lightning Input Form with Email Regex Pattern Checked and Submit on Click Button in Salesforce Lightning.

Files we used in this post example:-

preventDuplicateApp.app Lightning Application It is used for call the component to preview on browser.

preventDuplicateCmp.cmp

Lightning Component It is used for create a Score Card form  on lightning component .

preventDuplicateCmpController.js

JavaScript Controller File It is used for click function for submit the Input field Value into Database.
preventDuplicateCmpHelper.js JavaScript Helper Controller File It is used for fetch the dropdown picklist value from server and it’s call on Javascript doInit function.
preventDuplicateCmp.css Component Style CSS It is used for create custom Style CSS for alignment the form input field and Validation Error.
preventDuplicateController.apxc Apex Controller File It is used for insert input value into database server.

Live Demo

How to Avoid Duplicate Name Record Simply Using a Apex Controller Method -- w3web.net

Other post that would you like to learn

Step 1:- Create Lightning Application : preventDuplicateApp.app

From Developer Console >> File >> New >> Lightning Application

preventDuplicateApp.app [Component Application File]

Step 2:- Create Lightning Component : preventDuplicateCmp.cmp

From Developer Console >> File >> New >> Lightning Component

preventDuplicateCmp.cmp [Lightning Component File]

Step 3:- Create Lightning Component : preventDuplicateCmpController.js

From Developer Console >> File >> New >> Lightning Component >> JavaScript Controller

preventDuplicateCmpController.js [JavaScript Controller]

Step 4:- Create Lightning Component : preventDuplicateCmpHelper.js

From Developer Console >> File >> New >> Lightning Component >> JavaScript Helper

preventDuplicateCmpHelper.js [JavaScript Helper File]

How to Avoid Duplicate Name Record Simply Using a Apex Controller Method -- w3web.net

Step 5:- Create Lightning Component Style: preventDuplicateCmp.css

From Developer Console >> File >> New >> Lightning Component >> Component Style CSS

preventDuplicateCmp.css [Style CSS]

Step 5:- Create Apex Class : preventDuplicateController.apxc

From Developer Console >> File >> New >> Apex Class

preventDuplicateController.apxc [Apex Class Controller]

Further post that would you like to learn

Leave a Comment

Contribute to Support If Some Value Added in Your Project or Website